From 70855c5a21e086892871fdfa33047e4a11f8103c Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Fri, 17 Jan 2025 09:35:44 +0800 Subject: [PATCH] =?UTF-8?q?websocket=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/webSocketClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/webSocketClient.ts b/frontend/src/utils/webSocketClient.ts index 620a34c..ab905e0 100644 --- a/frontend/src/utils/webSocketClient.ts +++ b/frontend/src/utils/webSocketClient.ts @@ -36,7 +36,7 @@ export default class SocketService { // let token = '4E6EF539AAF119D82AC4C2BC84FBA21F'; - const url = 'ws://192.168.1.133:7777/hello?name=cdf' + const url = 'ws://localhost:7777/hello?name=cdf' this.ws = new WebSocket(url); // 连接成功的事件 this.ws.onopen = () => {