genesys-cloud-streaming-client 17.2.4-STREAM-146.2 → 17.2.4-develop.109

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.
@@ -82,7 +82,10 @@ class GenesysCloudMediaSession {
82
82
  reason: reason.condition || reason
83
83
  };
84
84
  if (!silent) {
85
- await utils_1.timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
85
+ await utils_1.timeoutPromise((resolve, reject) => {
86
+ this.log('info', 'sending sdp terminate');
87
+ this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject);
88
+ }, 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
86
89
  }
87
90
  this.onSessionTerminate(params.reason);
88
91
  }
@@ -259,7 +262,7 @@ class GenesysCloudMediaSession {
259
262
  sdp: answer.sdp,
260
263
  sessionId: this.id
261
264
  };
262
- this.logger.info('sending jingle session-accept', params);
265
+ this.logger.info('sending sdp answer', params);
263
266
  return this.sendGenesysWebrtc({
264
267
  jsonrpc: '2.0',
265
268
  method: 'answer',
@@ -99,6 +99,7 @@ class StanzaMediaSession extends jingle_1.MediaSession {
99
99
  reason = { condition: reason };
100
100
  }
101
101
  if (!silent) {
102
+ this._log('info', 'sending jingle session-terminate');
102
103
  this.send('session-terminate', { reason });
103
104
  }
104
105
  // After sending session-terminate, wait for the peer connection to die -> if it doesn't, we will manually close it.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "developercenter-cdn/streaming-client",
3
- "version": "STREAM-146",
3
+ "version": "17.2.4",
4
4
  "ecosystem": "pc",
5
5
  "team": "Client Streaming and Signaling",
6
6
  "indexFiles": [
@@ -17,6 +17,6 @@
17
17
  "file": "v17/streaming-client.browser.js"
18
18
  }
19
19
  ],
20
- "build": "2",
21
- "buildDate": "2024-08-01T21:18:51.576138206Z"
20
+ "build": "109",
21
+ "buildDate": "2024-08-07T21:01:41.401465775Z"
22
22
  }
@@ -29963,6 +29963,7 @@ class StanzaMediaSession extends jingle$1.MediaSession {
29963
29963
  reason = { condition: reason };
29964
29964
  }
29965
29965
  if (!silent) {
29966
+ this._log('info', 'sending jingle session-terminate');
29966
29967
  this.send('session-terminate', { reason });
29967
29968
  }
29968
29969
  // After sending session-terminate, wait for the peer connection to die -> if it doesn't, we will manually close it.
@@ -30191,7 +30192,10 @@ class GenesysCloudMediaSession {
30191
30192
  reason: reason.condition || reason
30192
30193
  };
30193
30194
  if (!silent) {
30194
- yield timeoutPromise$1((resolve, reject) => this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
30195
+ yield timeoutPromise$1((resolve, reject) => {
30196
+ this.log('info', 'sending sdp terminate');
30197
+ this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject);
30198
+ }, 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
30195
30199
  }
30196
30200
  this.onSessionTerminate(params.reason);
30197
30201
  });
@@ -30376,7 +30380,7 @@ class GenesysCloudMediaSession {
30376
30380
  sdp: answer.sdp,
30377
30381
  sessionId: this.id
30378
30382
  };
30379
- this.logger.info('sending jingle session-accept', params);
30383
+ this.logger.info('sending sdp answer', params);
30380
30384
  return this.sendGenesysWebrtc({
30381
30385
  jsonrpc: '2.0',
30382
30386
  method: 'answer',
@@ -84,7 +84,10 @@ export class GenesysCloudMediaSession {
84
84
  reason: reason.condition || reason
85
85
  };
86
86
  if (!silent) {
87
- yield timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
87
+ yield timeoutPromise((resolve, reject) => {
88
+ this.log('info', 'sending sdp terminate');
89
+ this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject);
90
+ }, 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
88
91
  }
89
92
  this.onSessionTerminate(params.reason);
90
93
  });
@@ -269,7 +272,7 @@ export class GenesysCloudMediaSession {
269
272
  sdp: answer.sdp,
270
273
  sessionId: this.id
271
274
  };
272
- this.logger.info('sending jingle session-accept', params);
275
+ this.logger.info('sending sdp answer', params);
273
276
  return this.sendGenesysWebrtc({
274
277
  jsonrpc: '2.0',
275
278
  method: 'answer',
@@ -102,6 +102,7 @@ export class StanzaMediaSession extends MediaSession {
102
102
  reason = { condition: reason };
103
103
  }
104
104
  if (!silent) {
105
+ this._log('info', 'sending jingle session-terminate');
105
106
  this.send('session-terminate', { reason });
106
107
  }
107
108
  // After sending session-terminate, wait for the peer connection to die -> if it doesn't, we will manually close it.
@@ -82,7 +82,10 @@ class GenesysCloudMediaSession {
82
82
  reason: reason.condition || reason
83
83
  };
84
84
  if (!silent) {
85
- await utils_1.timeoutPromise((resolve, reject) => this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject), 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
85
+ await utils_1.timeoutPromise((resolve, reject) => {
86
+ this.log('info', 'sending sdp terminate');
87
+ this.sendGenesysWebrtc({ jsonrpc: '2.0', method: 'terminate', params }).then(resolve, reject);
88
+ }, 2000, 'Timeout waiting for response to termination request', { sessionId: this.id, conversationId: this.conversationId, sessionType: this.sessionType }).catch((e) => this.logger.error(e));
86
89
  }
87
90
  this.onSessionTerminate(params.reason);
88
91
  }
@@ -259,7 +262,7 @@ class GenesysCloudMediaSession {
259
262
  sdp: answer.sdp,
260
263
  sessionId: this.id
261
264
  };
262
- this.logger.info('sending jingle session-accept', params);
265
+ this.logger.info('sending sdp answer', params);
263
266
  return this.sendGenesysWebrtc({
264
267
  jsonrpc: '2.0',
265
268
  method: 'answer',
@@ -99,6 +99,7 @@ class StanzaMediaSession extends jingle_1.MediaSession {
99
99
  reason = { condition: reason };
100
100
  }
101
101
  if (!silent) {
102
+ this._log('info', 'sending jingle session-terminate');
102
103
  this.send('session-terminate', { reason });
103
104
  }
104
105
  // After sending session-terminate, wait for the peer connection to die -> if it doesn't, we will manually close it.