Simplify new-type Websocket connection detection