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