cross-tab-worker-databus 0.21.6 → 0.21.8

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.
@@ -5244,7 +5244,16 @@ var CentrifugeSession = class {
5244
5244
  /** Forward a publication to the transport. Binary payloads take the
5245
5245
  * zero-copy `MESSAGE_BIN` path when `transferable` is enabled; everything
5246
5246
  * else is structured-cloned via `MESSAGE`. An empty topic means the
5247
- * publication carried no channel info and is silently dropped. */
5247
+ * publication carried no channel info and is silently dropped.
5248
+ *
5249
+ * That drop is uncovered and dominated: the connection-level caller tests the
5250
+ * same emptiness before calling, and the subscription-level caller reads the
5251
+ * topic out of a key this session only ever populates from a SUBSCRIBE frame.
5252
+ * Measured — deleting this line leaves all 37 test files green, and the frame
5253
+ * it withholds could not be delivered anyway, because `topicMatchesPattern`
5254
+ * answers false for an empty topic against both `*` and `prefix.*` (so no
5255
+ * wildcard handler sees it either) and `subscribe('')` throws. Kept as the
5256
+ * boundary statement, not counted as a closed leg. */
5248
5257
  postPublication(topic, data) {
5249
5258
  if (!topic) return;
5250
5259
  if (this.transferable && data instanceof ArrayBuffer) {