improves websocket feature detection