vani-meeting-client 1.6.4 → 1.6.6

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.
@@ -385,12 +385,21 @@ var WebsocketHandler = /** @class */ (function (_super) {
385
385
  this.sendSocketMessage(WebSocketBasicEvents.IsSetupDone, checkIfSetupDone);
386
386
  log.info("Vani setupDone asked");
387
387
  window.setTimeout(function () {
388
- if (_this.isSetUpDone || _this.setUpTry > 10) {
388
+ if (_this.isSetUpDone) {
389
+ return;
390
+ }
391
+ else if (_this.setUpTry > 15) {
392
+ setTimeout(function () {
393
+ var _a;
394
+ if (!_this.isSetUpDone) {
395
+ (_a = _this.communicationHandler) === null || _a === void 0 ? void 0 : _a.emitMessageToSource(VaniEvent.OnSocketError, {});
396
+ }
397
+ }, 10000);
389
398
  return;
390
399
  }
391
400
  _this.askIfSetupDone();
392
401
  _this.setUpTry = _this.setUpTry + 1;
393
- }, 200);
402
+ }, 300);
394
403
  };
395
404
  WebsocketHandler.prototype.onMessage = function (message) {
396
405
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",