vani-meeting-client-native 0.1.2 → 0.1.4

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.
@@ -97,7 +97,7 @@ var CommunicationHandler = /** @class */ (function () {
97
97
  .catch(function (error) {
98
98
  var _a;
99
99
  count = count + 1;
100
- _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.error('Error:', error);
100
+ _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.log('Error:', error);
101
101
  if (_this.meetingStartRequest) {
102
102
  if (_this.meetingStartRequest.shouldKeepTryToReconnect === false && count > 35) {
103
103
  _this.emitMessageToSource(VaniEvent.OnReconectionTimeout, {});
@@ -564,6 +564,7 @@ var CommunicationHandler = /** @class */ (function () {
564
564
  // if (count < 2 && this.websocketCallHandler?.isWebScoketConnected()) {
565
565
  // this.videoCallHandler?.reconnectedWithoutPing()
566
566
  // }
567
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("onApiResponded inside", count);
567
568
  if (this.meetingStartRequest && this.meetingStartRequest.isMobileApp) {
568
569
  if ((_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.isWebScoketConnected()) {
569
570
  return;
@@ -277,11 +277,11 @@ var WebsocketHandler = /** @class */ (function (_super) {
277
277
  this.wss.onerror = function (event) {
278
278
  var _a;
279
279
  _this.meetingStartRequest && _this.meetingStartRequest.logLevel === LogLevel.Debug && console.log("wss error", event);
280
+ _this.isWebSocketConnectionInProgress = false;
280
281
  if (_this.meetingStartRequest && _this.meetingStartRequest.isMobileApp) {
281
282
  _this.communicationHandler.onIceCandidateDisconnected();
282
283
  }
283
284
  else {
284
- _this.isWebSocketConnectionInProgress = false;
285
285
  (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnSocketError, event);
286
286
  if (_this.wss) {
287
287
  _this.wss.close();
@@ -320,6 +320,11 @@ var WebsocketHandler = /** @class */ (function (_super) {
320
320
  };
321
321
  WebsocketHandler.prototype.reconnectOnInternetFailur = function () {
322
322
  var _a;
323
+ this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug &&
324
+ log.info("reconnectOnInternetFailur on start", this.isWebScoketConnected(), this.isWebSocketConnectionInProgress);
325
+ if (this.isWebScoketConnected() || this.isWebSocketConnectionInProgress) {
326
+ return;
327
+ }
323
328
  this.meetingStartRequest && this.meetingStartRequest.logLevel === LogLevel.Debug && log.info("reconnectOnInternetFailur");
324
329
  if (this.wss) {
325
330
  (_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.2",
3
+ "version": "0.1.4",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",