modified websocket