代码更新

This commit is contained in:
GaoHao
2025-03-10 09:14:57 +08:00
parent 4f65b08c06
commit 490c513f48
48 changed files with 1162 additions and 537 deletions

View File

@@ -58,7 +58,7 @@ class WebsocketUtil {
}
this.heartbeatInterval = setInterval(() => {
if (this.isOpen) {
this.send('心跳检测','heartbeat');
this.send(JSON.stringify({"type": "ping_interval"}));
}
}, this.time);
}
@@ -68,7 +68,6 @@ class WebsocketUtil {
if (this.socketTask && this.isOpen) {
this.socketTask.send({
data: data,
type: type||'heartbeat',
success: (res) => {
// console.log('消息发送成功', res);
},