genesys-cloud-streaming-client 17.2.2-develop.104 → 17.2.2-develop.105

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.
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };
@@ -17,6 +17,6 @@
17
17
  "file": "v17/streaming-client.browser.js"
18
18
  }
19
19
  ],
20
- "build": "104",
21
- "buildDate": "2024-06-18T21:47:01.933187Z"
20
+ "build": "105",
21
+ "buildDate": "2024-06-21T01:50:48.835699Z"
22
22
  }
package/dist/es/client.js CHANGED
@@ -462,7 +462,7 @@ export class Client extends EventEmitter {
462
462
  setupConnectionMonitoring(stanzaInstance) {
463
463
  return __awaiter(this, void 0, void 0, function* () {
464
464
  const setupClientPinger = (message) => {
465
- const logMessage = `$(message), falling back to client-side pinging`;
465
+ const logMessage = `${message}, falling back to client-side pinging`;
466
466
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
467
467
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
468
468
  };
@@ -41943,7 +41943,7 @@ class Client extends EventEmitter {
41943
41943
  setupConnectionMonitoring(stanzaInstance) {
41944
41944
  return __awaiter$5(this, void 0, void 0, function* () {
41945
41945
  const setupClientPinger = (message) => {
41946
- const logMessage = `$(message), falling back to client-side pinging`;
41946
+ const logMessage = `${message}, falling back to client-side pinging`;
41947
41947
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
41948
41948
  stanzaInstance.pinger = new Ping(this, stanzaInstance);
41949
41949
  };
@@ -41954,11 +41954,11 @@ class Client extends EventEmitter {
41954
41954
  stanzaInstance.serverMonitor = new ServerMonitor(this, stanzaInstance);
41955
41955
  }
41956
41956
  catch (err) {
41957
- setupClientPinger();
41957
+ setupClientPinger('failed to establish server-side pinging');
41958
41958
  }
41959
41959
  }
41960
41960
  else {
41961
- setupClientPinger();
41961
+ setupClientPinger('client configured to not use server-side pinging');
41962
41962
  }
41963
41963
  });
41964
41964
  }
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
  # [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.1...HEAD)
8
8
  ### Fixed
9
9
  * [STREAM-108](https://inindca.atlassian.net/browse/STREAM-108) Update ws to address Snyk vulnerability
10
+ ### Changed
11
+ * [no-jira] Fix string interpolation for log message and update docs for `useServerSidePings` default
10
12
 
11
13
  # [v17.2.1](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.2.0...v17.2.1)
12
14
  ### Changed
@@ -453,7 +453,7 @@ class Client extends events_1.default {
453
453
  }
454
454
  async setupConnectionMonitoring(stanzaInstance) {
455
455
  const setupClientPinger = (message) => {
456
- const logMessage = `$(message), falling back to client-side pinging`;
456
+ const logMessage = `${message}, falling back to client-side pinging`;
457
457
  this.logger.warn(logMessage, { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
458
458
  stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
459
459
  };