vani-meeting-client 1.2.1 → 1.2.3

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.
@@ -413,6 +413,7 @@ var CommunicationHandler = /** @class */ (function () {
413
413
  };
414
414
  //Connection Recheck
415
415
  CommunicationHandler.prototype.onIceCandidateDisconnected = function () {
416
+ console.log("onIceCandidateDisconnected", this.internetReachbilityTimeout);
416
417
  if (this.internetReachbilityTimeout) {
417
418
  return;
418
419
  }
@@ -421,6 +422,7 @@ var CommunicationHandler = /** @class */ (function () {
421
422
  CommunicationHandler.prototype.checkIfInternetReachable = function (count) {
422
423
  var _this = this;
423
424
  var _a;
425
+ console.log("checkIfInternetReachable pre", count);
424
426
  if (!this.meetingStartRequest) {
425
427
  (_a = this.meetingHandler) === null || _a === void 0 ? void 0 : _a.endAndDestory();
426
428
  return;
@@ -429,6 +431,7 @@ var CommunicationHandler = /** @class */ (function () {
429
431
  this.emitMessageToSource(VaniEvent.OnNotReachable, {});
430
432
  }
431
433
  this.isReachable = false;
434
+ console.log("checkIfInternetReachable");
432
435
  fetch(this.meetingStartRequest.urlToCheckInternetPresent, {
433
436
  method: 'GET',
434
437
  mode: 'no-cors',
@@ -452,6 +455,7 @@ var CommunicationHandler = /** @class */ (function () {
452
455
  };
453
456
  CommunicationHandler.prototype.onApiResponded = function (count) {
454
457
  var _a, _b, _c;
458
+ console.log("onApiResponded", count);
455
459
  if (this.isReachable === false) {
456
460
  this.isReachable = true;
457
461
  this.internetReachbilityTimeout = undefined;
@@ -91,6 +91,7 @@ var SFUHandler = /** @class */ (function (_super) {
91
91
  return _this;
92
92
  }
93
93
  SFUHandler.prototype.reconnectedWithoutPing = function () {
94
+ console.log("reconnectedWithoutPing");
94
95
  this.onReconnect();
95
96
  };
96
97
  SFUHandler.prototype.onReconnect = function () {
@@ -123,12 +124,14 @@ var SFUHandler = /** @class */ (function (_super) {
123
124
  iceParameters = data.message.iceParameters;
124
125
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.downloadParticipantsData();
125
126
  if (!(this.consumerTransport && this.consumerTransport.id === transportId)) return [3 /*break*/, 2];
127
+ console.log("Restat Ice consumer");
126
128
  return [4 /*yield*/, this.consumerTransport.restartIce({ iceParameters: iceParameters })];
127
129
  case 1:
128
130
  _b.sent();
129
131
  return [3 /*break*/, 4];
130
132
  case 2:
131
133
  if (!(this.sendTransport && this.sendTransport.id === transportId)) return [3 /*break*/, 4];
134
+ console.log("Restat Ice sender");
132
135
  return [4 /*yield*/, this.sendTransport.restartIce({ iceParameters: iceParameters })];
133
136
  case 3:
134
137
  _b.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",