Initialize the websocket connection with the rest of the app