Setting up a tegh websocket connection