update websocket demo