Patch websocket problem