Websocket connection is setup for the most part