|
@@ -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: [], // 未读消息列表
|