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

This commit is contained in:
YeMingfei666 2025-03-25 22:10:28 +08:00
parent edfa018921
commit 10a366d3da
1 changed files with 2 additions and 2 deletions

View File

@ -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' }));
}
}