Setup the websocket connection in the sidebar