fix: 修改心跳回执传参位置
This commit is contained in:
@@ -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' }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user