From 10a366d3daf9027eea956f5eca63981296dd6fb2 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Tue, 25 Mar 2025 22:10:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BF=83=E8=B7=B3?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E4=BC=A0=E5=8F=82=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/websocket.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts index 7dadc34..d6b0c30 100644 --- a/src/utils/websocket.ts +++ b/src/utils/websocket.ts @@ -59,7 +59,7 @@ class WebSocketManager { this.sendMessage(this.initParams); this.clearTimer(); this.timer = setInterval(() => { - this.sendMessage({ type: "ping_interval" }); + this.sendMessage({ type: "ping_interval", set: 'manage' }); }, 1000 * 10); }; @@ -94,7 +94,7 @@ class WebSocketManager { // 消息回执 public onMessageHandler(data: any) { if (this.client && this.connected) { - this.client.send(JSON.stringify({ ...data, type: 'receipt', set: 'manage' })); + this.client.send(JSON.stringify({ ...data, type: 'receipt' })); } }