fixed a compatibility issue with latest changes in the websocket protocol