@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/node/pusher.js
CHANGED
|
@@ -3887,30 +3887,43 @@ class DeltaCompressionManager {
|
|
|
3887
3887
|
baseMessage = channelState.getBaseMessage(conflationKey, baseIndex);
|
|
3888
3888
|
if (!baseMessage) {
|
|
3889
3889
|
this.error(
|
|
3890
|
-
`No base message for channel ${channel}
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
this.log("Current conflation cache snapshot", {
|
|
3890
|
+
`No base message (conflation path) for channel ${channel}`,
|
|
3891
|
+
{
|
|
3892
|
+
path: "conflation",
|
|
3894
3893
|
channel,
|
|
3895
|
-
|
|
3896
|
-
|
|
3894
|
+
deltaConflationKey: conflationKey,
|
|
3895
|
+
deltaBaseIndex: baseIndex,
|
|
3896
|
+
deltaSeq: sequence,
|
|
3897
|
+
channelStateConflationKey: channelState.conflationKey,
|
|
3898
|
+
channelStateBaseMessage: channelState.baseMessage ? "exists" : null,
|
|
3899
|
+
channelStateBaseSequence: channelState.baseSequence,
|
|
3900
|
+
channelStateLastSequence: channelState.lastSequence,
|
|
3901
|
+
conflationCacheKeys: Array.from(channelState.conflationCaches.keys()),
|
|
3902
|
+
conflationCacheSizes: Array.from(
|
|
3897
3903
|
channelState.conflationCaches.entries()
|
|
3898
3904
|
).map(([key, cache]) => ({ key, size: cache.length }))
|
|
3899
|
-
}
|
|
3900
|
-
|
|
3905
|
+
}
|
|
3906
|
+
);
|
|
3901
3907
|
this.requestResync(channel);
|
|
3902
3908
|
return null;
|
|
3903
3909
|
}
|
|
3904
3910
|
} else {
|
|
3905
3911
|
baseMessage = channelState.baseMessage;
|
|
3906
3912
|
if (!baseMessage) {
|
|
3907
|
-
this.error(
|
|
3908
|
-
|
|
3909
|
-
|
|
3913
|
+
this.error(
|
|
3914
|
+
`No base message (legacy path) for channel ${channel}`,
|
|
3915
|
+
{
|
|
3916
|
+
path: "legacy",
|
|
3910
3917
|
channel,
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3918
|
+
deltaConflationKey: conflationKey,
|
|
3919
|
+
deltaBaseIndex: baseIndex,
|
|
3920
|
+
deltaSeq: sequence,
|
|
3921
|
+
channelStateConflationKey: channelState.conflationKey,
|
|
3922
|
+
channelStateBaseMessage: null,
|
|
3923
|
+
channelStateBaseSequence: channelState.baseSequence,
|
|
3924
|
+
channelStateLastSequence: channelState.lastSequence
|
|
3925
|
+
}
|
|
3926
|
+
);
|
|
3914
3927
|
this.requestResync(channel);
|
|
3915
3928
|
return null;
|
|
3916
3929
|
}
|