@shimotsuki/core 3.0.26 → 3.0.28
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 +3 -2
- package/package.json +1 -1
package/dist/shimotsuki_core.js
CHANGED
|
@@ -1657,7 +1657,7 @@ class SocialGameClientManager extends BaseManager {
|
|
|
1657
1657
|
|
|
1658
1658
|
case "show":
|
|
1659
1659
|
this.isInBackground = false;
|
|
1660
|
-
console.log("监听前台 show");
|
|
1660
|
+
console.log("监听前台 show", t);
|
|
1661
1661
|
if (t) this.pendingShowOptions.push(t);
|
|
1662
1662
|
await this.safeTriggerReconnectAll();
|
|
1663
1663
|
break;
|
|
@@ -1684,9 +1684,10 @@ class SocialGameClientManager extends BaseManager {
|
|
|
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);
|