jsgar 4.13.4 → 4.13.6

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.
Files changed (3) hide show
  1. package/dist/gar.umd.js +10 -0
  2. package/gar.js +10 -0
  3. package/package.json +1 -1
package/dist/gar.umd.js CHANGED
@@ -1694,6 +1694,16 @@
1694
1694
  this.compareExchangeRecordWithIds(keyId, topicId, test, value);
1695
1695
  }
1696
1696
 
1697
+ /**
1698
+ * Declare the subscription group for subsequent operations whose results the server tags by group —
1699
+ * notably compare-exchange. Send this BEFORE a compareExchangeRecord and register the result handler
1700
+ * on the same group, so the result routes to it (the server reflects this group ahead of the result).
1701
+ * @param {number} subscriptionGroup - The group to attribute following results to.
1702
+ */
1703
+ sendActiveSubscriptionGroup(subscriptionGroup) {
1704
+ this.sendMessage({ message_type: 'ActiveSubscription', value: { subscription_group: subscriptionGroup } });
1705
+ }
1706
+
1697
1707
  /**
1698
1708
  * Query GAR deployment routing to find servers with matching publications.
1699
1709
  * Mirrors the Python client's route_query implementation.
package/gar.js CHANGED
@@ -1687,6 +1687,16 @@ class GARClient {
1687
1687
  this.compareExchangeRecordWithIds(keyId, topicId, test, value);
1688
1688
  }
1689
1689
 
1690
+ /**
1691
+ * Declare the subscription group for subsequent operations whose results the server tags by group —
1692
+ * notably compare-exchange. Send this BEFORE a compareExchangeRecord and register the result handler
1693
+ * on the same group, so the result routes to it (the server reflects this group ahead of the result).
1694
+ * @param {number} subscriptionGroup - The group to attribute following results to.
1695
+ */
1696
+ sendActiveSubscriptionGroup(subscriptionGroup) {
1697
+ this.sendMessage({ message_type: 'ActiveSubscription', value: { subscription_group: subscriptionGroup } });
1698
+ }
1699
+
1690
1700
  /**
1691
1701
  * Query GAR deployment routing to find servers with matching publications.
1692
1702
  * Mirrors the Python client's route_query implementation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsgar",
3
- "version": "4.13.4",
3
+ "version": "4.13.6",
4
4
  "description": "A Javascript client for the GAR protocol",
5
5
  "type": "module",
6
6
  "main": "dist/gar.umd.js",