finished the websocket example