commit
This commit is contained in:
@@ -168,7 +168,7 @@
|
||||
this.isSubscribed = true
|
||||
this.sendJoinMessage()
|
||||
}
|
||||
}, 500)
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
// 事件处理
|
||||
@@ -202,6 +202,7 @@
|
||||
// )
|
||||
// 连接建立时不立即发送 join,等待订阅完成
|
||||
this.ping()
|
||||
console.log('websocket open success')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +246,7 @@
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
}, 2000) // 延迟2秒重连
|
||||
}, 1000) // 延迟2秒重连
|
||||
}
|
||||
|
||||
// 窗口事件处理
|
||||
|
||||
Reference in New Issue
Block a user