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/index.cjs
CHANGED
|
@@ -1910,7 +1910,7 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
1910
1910
|
const now = this.now();
|
|
1911
1911
|
if (now - this.lastRecoveryAt >= _CrossTabDataBus.RECOVERY_COOLDOWN_MS) {
|
|
1912
1912
|
this.lastRecoveryAt = now;
|
|
1913
|
-
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1 });
|
|
1913
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "scheduled" });
|
|
1914
1914
|
setTimeout(() => {
|
|
1915
1915
|
if (this.stopping || !this.started || this.suspended) return;
|
|
1916
1916
|
if (this.status !== "error") return;
|
|
@@ -2017,9 +2017,12 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
2017
2017
|
this.startPromise = opening;
|
|
2018
2018
|
void opening.then(
|
|
2019
2019
|
() => {
|
|
2020
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "succeeded" });
|
|
2020
2021
|
if (this.startPromise === opening) this.startPromise = null;
|
|
2021
2022
|
},
|
|
2022
|
-
() =>
|
|
2023
|
+
() => {
|
|
2024
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "failed" });
|
|
2025
|
+
}
|
|
2023
2026
|
);
|
|
2024
2027
|
void opening.catch(() => void 0);
|
|
2025
2028
|
return opening;
|