vani-meeting-client-native 0.1.1 → 0.1.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.
@@ -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
  };
@@ -320,6 +320,9 @@ var WebsocketHandler = /** @class */ (function (_super) {
320
320
  };
321
321
  WebsocketHandler.prototype.reconnectOnInternetFailur = function () {
322
322
  var _a;
323
+ if (this.isWebScoketConnected() || this.isWebSocketConnectionInProgress) {
324
+ return;
325
+ }
323
326
  this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("reconnectOnInternetFailur");
324
327
  if (this.wss) {
325
328
  (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnReconecting, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client-native",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",