diff --git a/src/utils/webSocket.js b/src/utils/webSocket.js index 4ae88c8..6c3cc52 100644 --- a/src/utils/webSocket.js +++ b/src/utils/webSocket.js @@ -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;