cross-tab-worker-databus 0.21.35 → 0.21.36

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.
@@ -2604,7 +2604,7 @@ var SDK_VERSION = (
2604
2604
  // declaration's type is `string | undefined` and the export's is `string`
2605
2605
  // (dropping the conditional is TS2322, measured). Recorded here so the leg reads
2606
2606
  // as a shape the harness cannot reach rather than as a case nobody exercised.
2607
- true ? "0.21.35" : ""
2607
+ true ? "0.21.36" : ""
2608
2608
  );
2609
2609
 
2610
2610
  // src/core/data-bus.ts
@@ -4226,8 +4226,10 @@ var CentrifugeWorkerTransport = class {
4226
4226
  this.handleOutput(message);
4227
4227
  };
4228
4228
  /** Route a Worker output message to the appropriate handler callback.
4229
- * Shared by the Worker message listener, the SharedWorker port listener,
4230
- * and the local-session sink — all three feed into this single dispatcher. */
4229
+ * Three message sources reach it — the dedicated Worker, the SharedWorker
4230
+ * MessagePort, and the in-process session sink — but through two call sites: the
4231
+ * first two share this one `handleMessage` handler, registered on the Worker and
4232
+ * on the port, and only the session path arrives through its own wrapper. */
4231
4233
  handleOutput(message) {
4232
4234
  if (message.type === CENTRIFUGE_OUTPUT_TYPE.STATUS) this.handlers?.onStatus(message.status);
4233
4235
  if (message.type === CENTRIFUGE_OUTPUT_TYPE.MESSAGE) this.handlers?.onMessage({ topic: message.topic, data: message.data, ...publicationMetadata(message.messageId, message.timestamp) });