Example of using websocket