jsgar 1.2.4 → 1.3.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/gar.umd.js +3 -3
- package/package.json +1 -1
package/dist/gar.umd.js
CHANGED
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
registerDefaultHandlers() {
|
|
388
388
|
this.registerIntroductionHandler((version, interval, user, _schema) =>
|
|
389
389
|
this.log('INFO', `Connected to server: ${user}`));
|
|
390
|
-
this.registerHeartbeatHandler((u_milliseconds) => this.log('
|
|
390
|
+
this.registerHeartbeatHandler((u_milliseconds) => this.log('INFO', `Heartbeat received ${u_milliseconds}}`));
|
|
391
391
|
this.registerLogoffHandler(() => this.log('INFO', 'Logoff received'));
|
|
392
392
|
this.registerTopicIntroductionHandler((topicId, name) =>
|
|
393
393
|
this.log('DEBUG', `New server topic: ${name} (Server ID: ${topicId})`));
|
|
@@ -575,14 +575,14 @@
|
|
|
575
575
|
* @param {string|null} [keyFilter=null] - Key filter regex
|
|
576
576
|
* @param {string|null} [topicFilter=null] - Topic filter regex
|
|
577
577
|
*/
|
|
578
|
-
subscribe(name, mode = 'Streaming', keyName = null, topicName = null, classFilter = null, keyFilter = null, topicFilter = null,
|
|
578
|
+
subscribe(name, mode = 'Streaming', keyName = null, topicName = null, classFilter = null, keyFilter = null, topicFilter = null, all_matching_keys = false) {
|
|
579
579
|
const keyId = keyName ? this.getAndPossiblyIntroduceKeyId(keyName) : 0;
|
|
580
580
|
const topicId = topicName ? this.getAndPossiblyIntroduceTopicId(topicName) : 0;
|
|
581
581
|
const subMsg = {
|
|
582
582
|
message_type: 'Subscribe',
|
|
583
583
|
value: {
|
|
584
584
|
subscription_mode: mode,
|
|
585
|
-
|
|
585
|
+
all_matching_keys: all_matching_keys,
|
|
586
586
|
nagle_interval: 0,
|
|
587
587
|
name,
|
|
588
588
|
key_id: keyId,
|