websocket example fix