2025年05月07日14:40:02
This commit is contained in:
parent
5853dde245
commit
b53e47b051
@ -5,7 +5,7 @@ export default class WebSocketService {
|
||||
this.socket = null;
|
||||
this.isAlive = false; // 用于判断心跳是否正常
|
||||
this.reconnectAttempts = 0; // 重连尝试次数
|
||||
this.MAX_RECONNECT_ATTEMPTS = 5; // 最大重连次数
|
||||
this.MAX_RECONNECT_ATTEMPTS = 20; // 最大重连次数
|
||||
// this.HEARTBEAT_INTERVAL = 5000; // 心跳间隔时间 (30秒)
|
||||
this.HEARTBEAT_INTERVAL = 30000; // 心跳间隔时间 (30秒)
|
||||
this.heartbeatTimer = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user