cross-tab-worker-databus 0.20.49 → 0.20.51
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 +12 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-ONPDJJFK.js → chunk-LXRYJA3A.js} +5 -1
- package/dist/{chunk-ONPDJJFK.js.map → chunk-LXRYJA3A.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +4 -0
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts +6 -0
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +6 -2
- package/docs/zh/roadmap.md +6 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1683,6 +1683,10 @@ var CrossTabDataBus = class {
|
|
|
1683
1683
|
getStatus() {
|
|
1684
1684
|
return this.status;
|
|
1685
1685
|
}
|
|
1686
|
+
/** Return a bounded snapshot of automatic transport recovery state. */
|
|
1687
|
+
getRecoveryStats() {
|
|
1688
|
+
return { attempt: this.recoveryAttempt, exhausted: this.recoveryExhausted, maxAttempts: this.recoveryMaxAttempts };
|
|
1689
|
+
}
|
|
1686
1690
|
/** Snapshot of the cluster state (workers, routes, assignments).
|
|
1687
1691
|
* For diagnostics only — the returned object is a shallow copy but
|
|
1688
1692
|
* nested arrays are snapshots at call time. */
|