create the websocket connection