Added websocket connection and decoding.