Finalized websocket demo