Switch a websocket