@shimotsuki/core 3.0.27 → 3.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shimotsuki_core.js +4 -3
- package/package.json +1 -1
package/dist/shimotsuki_core.js
CHANGED
|
@@ -1673,20 +1673,21 @@ class SocialGameClientManager extends BaseManager {
|
|
|
1673
1673
|
async safeTriggerReconnectAll() {
|
|
1674
1674
|
const e = ee();
|
|
1675
1675
|
if (this.reconnecting) {
|
|
1676
|
-
|
|
1676
|
+
console.log("[safeTriggerReconnectAll] 正在重连中,跳过本次");
|
|
1677
1677
|
return;
|
|
1678
1678
|
}
|
|
1679
1679
|
if (e - this.lastReconnectTime < this.RECONNECT_COOLDOWN) {
|
|
1680
|
-
|
|
1680
|
+
console.log("[safeTriggerReconnectAll] 距上次重连过近,跳过本次");
|
|
1681
1681
|
return;
|
|
1682
1682
|
}
|
|
1683
1683
|
this.lastReconnectTime = e;
|
|
1684
1684
|
await this.triggerReconnectAll();
|
|
1685
1685
|
}
|
|
1686
1686
|
async triggerReconnectAll() {
|
|
1687
|
-
|
|
1687
|
+
console.log("触发所有客户端重连[正在重连][在线][后台][ws数量]", this.reconnecting, this.isGlobalOnline, this.isInBackground, this.managedClients.size);
|
|
1688
1688
|
if (this.reconnecting || !this.isGlobalOnline || this.isInBackground || this.managedClients.size === 0) {
|
|
1689
1689
|
this.onEventReloadSceneDelegate.dispatch();
|
|
1690
|
+
console.log("====pendingShowOptions", this.pendingShowOptions.length);
|
|
1690
1691
|
while (this.pendingShowOptions.length > 0) {
|
|
1691
1692
|
const e = this.pendingShowOptions.shift();
|
|
1692
1693
|
this.onEventShowDelegate.dispatch(e);
|