fixed websocket check