better example of websocket