fixed websocket communication