change to websocket connection