cross-tab-worker-databus 0.20.20 → 0.20.21
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/CHANGELOG.md +6 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-2PUSQWOL.js → chunk-UMMKMXOT.js} +7 -2
- package/dist/{chunk-2PUSQWOL.js.map → chunk-UMMKMXOT.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +6 -1
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +6 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts +1 -0
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +5 -1
- package/docs/zh/roadmap.md +5 -1
- package/package.json +1 -1
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -1291,6 +1291,7 @@ var CrossTabDataBus = class {
|
|
|
1291
1291
|
// Monotonic attempt number within one runtime recovery sequence; reset once
|
|
1292
1292
|
// a transport reopen succeeds so traces can correlate repeated failures.
|
|
1293
1293
|
recoveryAttempt = 0;
|
|
1294
|
+
recoveryExhausted = false;
|
|
1294
1295
|
// True while the tab is hidden so an in-flight transport start does not mark
|
|
1295
1296
|
// the transport ready after suspendTransport() has stopped it.
|
|
1296
1297
|
suspended = false;
|
|
@@ -1899,7 +1900,10 @@ var CrossTabDataBus = class {
|
|
|
1899
1900
|
this.lastRecoveryAt = now;
|
|
1900
1901
|
const attempt = ++this.recoveryAttempt;
|
|
1901
1902
|
if (attempt > this.recoveryMaxAttempts) {
|
|
1902
|
-
|
|
1903
|
+
if (!this.recoveryExhausted) {
|
|
1904
|
+
this.recoveryExhausted = true;
|
|
1905
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: this.recoveryMaxAttempts, outcome: "exhausted" });
|
|
1906
|
+
}
|
|
1903
1907
|
return;
|
|
1904
1908
|
}
|
|
1905
1909
|
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt, outcome: "scheduled" });
|
|
@@ -2013,6 +2017,7 @@ var CrossTabDataBus = class {
|
|
|
2013
2017
|
if (traceAttempt !== void 0) {
|
|
2014
2018
|
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: traceAttempt, outcome: "succeeded" });
|
|
2015
2019
|
this.recoveryAttempt = 0;
|
|
2020
|
+
this.recoveryExhausted = false;
|
|
2016
2021
|
}
|
|
2017
2022
|
if (this.startPromise === opening) this.startPromise = null;
|
|
2018
2023
|
},
|