fix: 修改心跳回执传参位置

This commit is contained in:
2025-03-25 22:10:28 +08:00
parent edfa018921
commit 10a366d3da

View File

@@ -59,7 +59,7 @@ class WebSocketManager {
this.sendMessage(this.initParams); this.sendMessage(this.initParams);
this.clearTimer(); this.clearTimer();
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.sendMessage({ type: "ping_interval" }); this.sendMessage({ type: "ping_interval", set: 'manage' });
}, 1000 * 10); }, 1000 * 10);
}; };
@@ -94,7 +94,7 @@ class WebSocketManager {
// 消息回执 // 消息回执
public onMessageHandler(data: any) { public onMessageHandler(data: any) {
if (this.client && this.connected) { if (this.client && this.connected) {
this.client.send(JSON.stringify({ ...data, type: 'receipt', set: 'manage' })); this.client.send(JSON.stringify({ ...data, type: 'receipt' }));
} }
} }