vani-meeting-client-native 0.1.0 → 0.1.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.
@@ -556,7 +556,7 @@ var CommunicationHandler = /** @class */ (function () {
556
556
  this.internetReachbilityTimeout = window.setTimeout(this.checkIfInternetReachable, 200, 0);
557
557
  };
558
558
  CommunicationHandler.prototype.onApiResponded = function (count) {
559
- var _a;
559
+ var _a, _b, _c;
560
560
  this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("onApiResponded", count);
561
561
  if (this.isReachable === false) {
562
562
  this.isReachable = true;
@@ -565,10 +565,16 @@ var CommunicationHandler = /** @class */ (function () {
565
565
  // this.videoCallHandler?.reconnectedWithoutPing()
566
566
  // }
567
567
  if (this.meetingStartRequest && this.meetingStartRequest.isMobileApp) {
568
+ if ((_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.isWebScoketConnected()) {
569
+ return;
570
+ }
568
571
  this.websocketCallHandler.reconnectOnInternetFailur();
569
572
  }
573
+ else if ((_b = this.websocketCallHandler) === null || _b === void 0 ? void 0 : _b.isWebScoketConnected()) {
574
+ (_c = this.videoCallHandler) === null || _c === void 0 ? void 0 : _c.reconnectedWithoutPing();
575
+ }
570
576
  else {
571
- (_a = this.videoCallHandler) === null || _a === void 0 ? void 0 : _a.reconnectedWithoutPing();
577
+ this.websocketCallHandler.reconnectOnInternetFailur();
572
578
  }
573
579
  }
574
580
  };
@@ -361,7 +361,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
361
361
  };
362
362
  WebsocketHandler.prototype.tryToReconectSocket = function () {
363
363
  var _a, _b;
364
- if (this.isWebSocketConnectionInProgress) {
364
+ if (this.isWebSocketConnectionInProgress || this.isWebScoketConnected()) {
365
365
  return;
366
366
  }
367
367
  this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("tryToReconectSocket");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",