@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.js
CHANGED
|
@@ -1639,6 +1639,7 @@ var RealtimeClient = class {
|
|
|
1639
1639
|
captureDurableHandshake(state, ack) {
|
|
1640
1640
|
if (ack.generation !== void 0) state.generation = ack.generation;
|
|
1641
1641
|
if (ack.session !== void 0) state.session = ack.session;
|
|
1642
|
+
this.scheduleDurableAck(state);
|
|
1642
1643
|
}
|
|
1643
1644
|
/**
|
|
1644
1645
|
* #768 — schedule a coalesced durable ack. Only durable subscriptions (a
|
|
@@ -1761,6 +1762,10 @@ var RealtimeClient = class {
|
|
|
1761
1762
|
}
|
|
1762
1763
|
}
|
|
1763
1764
|
async resubscribeOne(primary, set) {
|
|
1765
|
+
for (const s of set) {
|
|
1766
|
+
s.generation = void 0;
|
|
1767
|
+
s.session = void 0;
|
|
1768
|
+
}
|
|
1764
1769
|
try {
|
|
1765
1770
|
const ack = await this.emitSubscribeEvents(primary);
|
|
1766
1771
|
if (ack.error) {
|
|
@@ -1773,12 +1778,9 @@ var RealtimeClient = class {
|
|
|
1773
1778
|
}
|
|
1774
1779
|
return;
|
|
1775
1780
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
}
|
|
1780
|
-
this.captureDurableHandshake(primary, ack);
|
|
1781
|
-
if (!this.streamSubscriptions.has(primary.subscriptionKey)) {
|
|
1781
|
+
if (this.streamSubscriptions.has(primary.subscriptionKey)) {
|
|
1782
|
+
this.captureDurableHandshake(primary, ack);
|
|
1783
|
+
} else {
|
|
1782
1784
|
const payload = {
|
|
1783
1785
|
projectId: primary.options.projectId,
|
|
1784
1786
|
collectionName: primary.options.collectionName
|