|
@@ -39,7 +39,7 @@ export class NetManager {
|
|
|
private timeOutID: any = null // 接收数据定时器
|
|
|
private timeOutTime: number = 7000 // 超时间隔 达到会主动关闭连接
|
|
|
private keepAliveID: any = null // 心跳定时器
|
|
|
- private keepAliveTime: number = 7000 // 心跳间隔
|
|
|
+ private keepAliveTime: number = 20000 // 心跳间隔
|
|
|
private reConnectID: any = null // 重连定时器
|
|
|
private reConnectTime: number = 3000 // 重连间隔
|
|
|
private curAutoReconnect: number = 0 // 重连次数
|
|
@@ -105,8 +105,6 @@ export class NetManager {
|
|
|
}
|
|
|
}
|
|
|
private sendKeepAlive() {
|
|
|
- // 屏蔽心跳 多设备会超时
|
|
|
- return
|
|
|
if (this.keepAliveID !== null) {
|
|
|
clearTimeout(this.keepAliveID)
|
|
|
}
|