liming 4 dni temu
rodzic
commit
e8526aa1f9
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/stores/modules/webSocketStore.js

+ 2 - 2
src/stores/modules/webSocketStore.js

@@ -21,8 +21,8 @@ export const useWebSocketStore = defineStore("webSocketStore", {
     peer: null, // peer实例
     lockConnection: false, // 锁定连接
     reconnectAttempts: 0, // 重连次数
-    maxReconnectAttempts: 10, // 最大重连次数
-    reconnectInterval: 3000, // 重连间隔
+    maxReconnectAttempts: 80, // 最大重连次数
+    reconnectInterval: 2000, // 重连间隔
     messages: [], // 消息列表
     toUserInfo: {},
     unreadMessages: [], // 未读消息列表