Working example of websocket communication.