From b53e47b051875b2294df948ea4151f105de505a2 Mon Sep 17 00:00:00 2001 From: luojiayi <1712054227@qq.com> Date: Wed, 7 May 2025 14:40:06 +0800 Subject: [PATCH] =?UTF-8?q?2025=E5=B9=B405=E6=9C=8807=E6=97=A514:40:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/webSocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;