fix: 修改心跳回执传参位置
This commit is contained in:
parent
edfa018921
commit
10a366d3da
|
|
@ -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' }));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue