fixing websocket protocol