cross-tab-worker-databus 0.20.14 → 0.20.16
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 +13 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-LPS4XOK4.js → chunk-WSJN2RG7.js} +6 -3
- package/dist/{chunk-LPS4XOK4.js.map → chunk-WSJN2RG7.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +5 -2
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +5 -2
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/core/trace.d.ts +2 -0
- package/dist/core/trace.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +10 -1
- package/docs/zh/roadmap.md +10 -1
- package/package.json +1 -1
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -1885,7 +1885,7 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
1885
1885
|
const now = this.now();
|
|
1886
1886
|
if (now - this.lastRecoveryAt >= _CrossTabDataBus.RECOVERY_COOLDOWN_MS) {
|
|
1887
1887
|
this.lastRecoveryAt = now;
|
|
1888
|
-
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1 });
|
|
1888
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "scheduled" });
|
|
1889
1889
|
setTimeout(() => {
|
|
1890
1890
|
if (this.stopping || !this.started || this.suspended) return;
|
|
1891
1891
|
if (this.status !== "error") return;
|
|
@@ -1992,9 +1992,12 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
1992
1992
|
this.startPromise = opening;
|
|
1993
1993
|
void opening.then(
|
|
1994
1994
|
() => {
|
|
1995
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "succeeded" });
|
|
1995
1996
|
if (this.startPromise === opening) this.startPromise = null;
|
|
1996
1997
|
},
|
|
1997
|
-
() =>
|
|
1998
|
+
() => {
|
|
1999
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "failed" });
|
|
2000
|
+
}
|
|
1998
2001
|
);
|
|
1999
2002
|
void opening.catch(() => void 0);
|
|
2000
2003
|
return opening;
|