@cendarsoss/pusher-js 8.4.11 → 8.4.12
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/dist/node/pusher.js +27 -14
- package/dist/node/pusher.js.map +1 -1
- package/dist/web/pusher.mjs +27 -14
- package/dist/web/pusher.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/delta/manager.ts +27 -14
package/dist/web/pusher.mjs
CHANGED
|
@@ -5353,30 +5353,43 @@ class DeltaCompressionManager {
|
|
|
5353
5353
|
baseMessage = channelState.getBaseMessage(conflationKey, baseIndex);
|
|
5354
5354
|
if (!baseMessage) {
|
|
5355
5355
|
this.error(
|
|
5356
|
-
`No base message for channel ${channel}
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
this.log("Current conflation cache snapshot", {
|
|
5356
|
+
`No base message (conflation path) for channel ${channel}`,
|
|
5357
|
+
{
|
|
5358
|
+
path: "conflation",
|
|
5360
5359
|
channel,
|
|
5361
|
-
|
|
5362
|
-
|
|
5360
|
+
deltaConflationKey: conflationKey,
|
|
5361
|
+
deltaBaseIndex: baseIndex,
|
|
5362
|
+
deltaSeq: sequence,
|
|
5363
|
+
channelStateConflationKey: channelState.conflationKey,
|
|
5364
|
+
channelStateBaseMessage: channelState.baseMessage ? "exists" : null,
|
|
5365
|
+
channelStateBaseSequence: channelState.baseSequence,
|
|
5366
|
+
channelStateLastSequence: channelState.lastSequence,
|
|
5367
|
+
conflationCacheKeys: Array.from(channelState.conflationCaches.keys()),
|
|
5368
|
+
conflationCacheSizes: Array.from(
|
|
5363
5369
|
channelState.conflationCaches.entries()
|
|
5364
5370
|
).map(([key, cache]) => ({ key, size: cache.length }))
|
|
5365
|
-
}
|
|
5366
|
-
|
|
5371
|
+
}
|
|
5372
|
+
);
|
|
5367
5373
|
this.requestResync(channel);
|
|
5368
5374
|
return null;
|
|
5369
5375
|
}
|
|
5370
5376
|
} else {
|
|
5371
5377
|
baseMessage = channelState.baseMessage;
|
|
5372
5378
|
if (!baseMessage) {
|
|
5373
|
-
this.error(
|
|
5374
|
-
|
|
5375
|
-
|
|
5379
|
+
this.error(
|
|
5380
|
+
`No base message (legacy path) for channel ${channel}`,
|
|
5381
|
+
{
|
|
5382
|
+
path: "legacy",
|
|
5376
5383
|
channel,
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5384
|
+
deltaConflationKey: conflationKey,
|
|
5385
|
+
deltaBaseIndex: baseIndex,
|
|
5386
|
+
deltaSeq: sequence,
|
|
5387
|
+
channelStateConflationKey: channelState.conflationKey,
|
|
5388
|
+
channelStateBaseMessage: null,
|
|
5389
|
+
channelStateBaseSequence: channelState.baseSequence,
|
|
5390
|
+
channelStateLastSequence: channelState.lastSequence
|
|
5391
|
+
}
|
|
5392
|
+
);
|
|
5380
5393
|
this.requestResync(channel);
|
|
5381
5394
|
return null;
|
|
5382
5395
|
}
|