set websocket connection