updated the WebsocketConnection