fixed websocket example