fix the host of websocket connection