genesys-cloud-streaming-client 17.1.1-develop.94 → 17.1.1-develop.95
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/cjs/client.d.ts +0 -1
- package/dist/cjs/client.js +1 -11
- package/dist/deploy-info.json +2 -2
- package/dist/es/client.d.ts +0 -1
- package/dist/es/client.js +1 -13
- package/dist/es/index.bundle.js +1 -13
- package/dist/npm/CHANGELOG.md +3 -0
- package/dist/npm/client.d.ts +0 -1
- package/dist/npm/client.js +1 -11
- package/dist/streaming-client.browser.ie.js +6 -6
- package/dist/streaming-client.browser.js +1 -1
- package/dist/v17/streaming-client.browser.ie.js +6 -6
- package/dist/v17/streaming-client.browser.js +1 -1
- package/dist/v17.1.1/streaming-client.browser.ie.js +6 -6
- package/dist/v17.1.1/streaming-client.browser.js +1 -1
- package/package.json +1 -1
package/dist/cjs/client.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export declare class Client extends EventEmitter {
|
|
|
55
55
|
connect(connectOpts?: StreamingClientConnectOptions): Promise<void>;
|
|
56
56
|
private backoffConnectRetryHandler;
|
|
57
57
|
private makeConnectionAttempt;
|
|
58
|
-
private setupPinger;
|
|
59
58
|
private prepareForConnect;
|
|
60
59
|
stopServerLogging(): void;
|
|
61
60
|
startServerLogging(): void;
|
package/dist/cjs/client.js
CHANGED
|
@@ -430,7 +430,7 @@ class Client extends events_1.default {
|
|
|
430
430
|
extension.handleStanzaInstanceChange(stanzaInstance);
|
|
431
431
|
}
|
|
432
432
|
this.activeStanzaInstance = stanzaInstance;
|
|
433
|
-
|
|
433
|
+
stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
|
|
434
434
|
this.emit('connected');
|
|
435
435
|
}
|
|
436
436
|
catch (err) {
|
|
@@ -445,16 +445,6 @@ class Client extends events_1.default {
|
|
|
445
445
|
throw err;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
async setupPinger(stanzaInstance) {
|
|
449
|
-
try {
|
|
450
|
-
// if this fails, then hawk doesn't support serverside pinging and we need to do client side pings
|
|
451
|
-
await stanzaInstance.subscribeToNode(this._notifications.pubsubHost, 'enable.server.side.pings');
|
|
452
|
-
}
|
|
453
|
-
catch (err) {
|
|
454
|
-
this.logger.warn('failed to establish server-side pinging, falling back to client-side pinging', { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
|
|
455
|
-
stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
448
|
async prepareForConnect() {
|
|
459
449
|
if (this.config.jwt) {
|
|
460
450
|
this.hardReconnectRequired = false;
|
package/dist/deploy-info.json
CHANGED
package/dist/es/client.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export declare class Client extends EventEmitter {
|
|
|
55
55
|
connect(connectOpts?: StreamingClientConnectOptions): Promise<void>;
|
|
56
56
|
private backoffConnectRetryHandler;
|
|
57
57
|
private makeConnectionAttempt;
|
|
58
|
-
private setupPinger;
|
|
59
58
|
private prepareForConnect;
|
|
60
59
|
stopServerLogging(): void;
|
|
61
60
|
startServerLogging(): void;
|
package/dist/es/client.js
CHANGED
|
@@ -437,7 +437,7 @@ export class Client extends EventEmitter {
|
|
|
437
437
|
extension.handleStanzaInstanceChange(stanzaInstance);
|
|
438
438
|
}
|
|
439
439
|
this.activeStanzaInstance = stanzaInstance;
|
|
440
|
-
|
|
440
|
+
stanzaInstance.pinger = new Ping(this, stanzaInstance);
|
|
441
441
|
this.emit('connected');
|
|
442
442
|
}
|
|
443
443
|
catch (err) {
|
|
@@ -453,18 +453,6 @@ export class Client extends EventEmitter {
|
|
|
453
453
|
}
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
|
-
setupPinger(stanzaInstance) {
|
|
457
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
try {
|
|
459
|
-
// if this fails, then hawk doesn't support serverside pinging and we need to do client side pings
|
|
460
|
-
yield stanzaInstance.subscribeToNode(this._notifications.pubsubHost, 'enable.server.side.pings');
|
|
461
|
-
}
|
|
462
|
-
catch (err) {
|
|
463
|
-
this.logger.warn('failed to establish server-side pinging, falling back to client-side pinging', { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
|
|
464
|
-
stanzaInstance.pinger = new Ping(this, stanzaInstance);
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
456
|
prepareForConnect() {
|
|
469
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
470
458
|
if (this.config.jwt) {
|
package/dist/es/index.bundle.js
CHANGED
|
@@ -41840,7 +41840,7 @@ class Client extends EventEmitter {
|
|
|
41840
41840
|
extension.handleStanzaInstanceChange(stanzaInstance);
|
|
41841
41841
|
}
|
|
41842
41842
|
this.activeStanzaInstance = stanzaInstance;
|
|
41843
|
-
|
|
41843
|
+
stanzaInstance.pinger = new Ping(this, stanzaInstance);
|
|
41844
41844
|
this.emit('connected');
|
|
41845
41845
|
}
|
|
41846
41846
|
catch (err) {
|
|
@@ -41856,18 +41856,6 @@ class Client extends EventEmitter {
|
|
|
41856
41856
|
}
|
|
41857
41857
|
});
|
|
41858
41858
|
}
|
|
41859
|
-
setupPinger(stanzaInstance) {
|
|
41860
|
-
return __awaiter$5(this, void 0, void 0, function* () {
|
|
41861
|
-
try {
|
|
41862
|
-
// if this fails, then hawk doesn't support serverside pinging and we need to do client side pings
|
|
41863
|
-
yield stanzaInstance.subscribeToNode(this._notifications.pubsubHost, 'enable.server.side.pings');
|
|
41864
|
-
}
|
|
41865
|
-
catch (err) {
|
|
41866
|
-
this.logger.warn('failed to establish server-side pinging, falling back to client-side pinging', { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
|
|
41867
|
-
stanzaInstance.pinger = new Ping(this, stanzaInstance);
|
|
41868
|
-
}
|
|
41869
|
-
});
|
|
41870
|
-
}
|
|
41871
41859
|
prepareForConnect() {
|
|
41872
41860
|
return __awaiter$5(this, void 0, void 0, function* () {
|
|
41873
41861
|
if (this.config.jwt) {
|
package/dist/npm/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
# [Unreleased](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v17.1.0...HEAD)
|
|
8
|
+
### Fixed
|
|
9
|
+
* [NO-JIRA] - Reverted PCM-2321, server-side pinging.
|
|
10
|
+
* [PCM-2347](https://inindca.atlassian.net/browse/PCM-2347) - Updated client-logger to fix critical Snyk vulnerability.
|
|
8
11
|
### Added
|
|
9
12
|
* [PCM-2344](https://inindca.atlassian.net/browse/PCM-2344) - Added ability to pass in custom headers for telemetry purposes (internal use only).
|
|
10
13
|
|
package/dist/npm/client.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export declare class Client extends EventEmitter {
|
|
|
55
55
|
connect(connectOpts?: StreamingClientConnectOptions): Promise<void>;
|
|
56
56
|
private backoffConnectRetryHandler;
|
|
57
57
|
private makeConnectionAttempt;
|
|
58
|
-
private setupPinger;
|
|
59
58
|
private prepareForConnect;
|
|
60
59
|
stopServerLogging(): void;
|
|
61
60
|
startServerLogging(): void;
|
package/dist/npm/client.js
CHANGED
|
@@ -430,7 +430,7 @@ class Client extends events_1.default {
|
|
|
430
430
|
extension.handleStanzaInstanceChange(stanzaInstance);
|
|
431
431
|
}
|
|
432
432
|
this.activeStanzaInstance = stanzaInstance;
|
|
433
|
-
|
|
433
|
+
stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
|
|
434
434
|
this.emit('connected');
|
|
435
435
|
}
|
|
436
436
|
catch (err) {
|
|
@@ -445,16 +445,6 @@ class Client extends events_1.default {
|
|
|
445
445
|
throw err;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
async setupPinger(stanzaInstance) {
|
|
449
|
-
try {
|
|
450
|
-
// if this fails, then hawk doesn't support serverside pinging and we need to do client side pings
|
|
451
|
-
await stanzaInstance.subscribeToNode(this._notifications.pubsubHost, 'enable.server.side.pings');
|
|
452
|
-
}
|
|
453
|
-
catch (err) {
|
|
454
|
-
this.logger.warn('failed to establish server-side pinging, falling back to client-side pinging', { stanzaInstanceId: stanzaInstance.id, channelId: stanzaInstance.channelId });
|
|
455
|
-
stanzaInstance.pinger = new ping_1.Ping(this, stanzaInstance);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
448
|
async prepareForConnect() {
|
|
459
449
|
if (this.config.jwt) {
|
|
460
450
|
this.hardReconnectRequired = false;
|