replace websocket.io with ws