@spacelr/sdk 0.18.1 → 0.18.2
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/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1592,6 +1592,7 @@ var RealtimeClient = class {
|
|
|
1592
1592
|
captureDurableHandshake(state, ack) {
|
|
1593
1593
|
if (ack.generation !== void 0) state.generation = ack.generation;
|
|
1594
1594
|
if (ack.session !== void 0) state.session = ack.session;
|
|
1595
|
+
this.scheduleDurableAck(state);
|
|
1595
1596
|
}
|
|
1596
1597
|
/**
|
|
1597
1598
|
* #768 — schedule a coalesced durable ack. Only durable subscriptions (a
|
|
@@ -1714,6 +1715,10 @@ var RealtimeClient = class {
|
|
|
1714
1715
|
}
|
|
1715
1716
|
}
|
|
1716
1717
|
async resubscribeOne(primary, set) {
|
|
1718
|
+
for (const s of set) {
|
|
1719
|
+
s.generation = void 0;
|
|
1720
|
+
s.session = void 0;
|
|
1721
|
+
}
|
|
1717
1722
|
try {
|
|
1718
1723
|
const ack = await this.emitSubscribeEvents(primary);
|
|
1719
1724
|
if (ack.error) {
|
|
@@ -1726,12 +1731,9 @@ var RealtimeClient = class {
|
|
|
1726
1731
|
}
|
|
1727
1732
|
return;
|
|
1728
1733
|
}
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
}
|
|
1733
|
-
this.captureDurableHandshake(primary, ack);
|
|
1734
|
-
if (!this.streamSubscriptions.has(primary.subscriptionKey)) {
|
|
1734
|
+
if (this.streamSubscriptions.has(primary.subscriptionKey)) {
|
|
1735
|
+
this.captureDurableHandshake(primary, ack);
|
|
1736
|
+
} else {
|
|
1735
1737
|
const payload = {
|
|
1736
1738
|
projectId: primary.options.projectId,
|
|
1737
1739
|
collectionName: primary.options.collectionName
|