podchat-browser 12.5.2-snapshot.0 → 12.5.2-snapshot.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.
package/changelog.md CHANGED
@@ -3,7 +3,12 @@
3
3
  All notable changes to this project will be documented here.
4
4
  to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.ir/pod/pod-basic-sdk/chat-js-browser-sdk/-/blob/master/changelog.md)
5
5
 
6
- ## [12.5.2-snapshot.1] - 2022-05-24
6
+ ## [12.5.2-snapshot.2] - 2022-05-24
7
+ ### Changed
8
+ - Update async package
9
+
10
+
11
+ ## [12.5.2-snapshot.0] - 2022-05-24
7
12
  ### Changed
8
13
  - Changed typeCode handling functionality
9
14
  - Updated sentry server URL
@@ -26736,7 +26736,7 @@ function config (name) {
26736
26736
  },{}],188:[function(require,module,exports){
26737
26737
  window.PodChat = require('./src/chat.js');
26738
26738
 
26739
- },{"./src/chat.js":331}],189:[function(require,module,exports){
26739
+ },{"./src/chat.js":332}],189:[function(require,module,exports){
26740
26740
  Object.defineProperty(exports, "__esModule", { value: true });
26741
26741
  var tslib_1 = require("tslib");
26742
26742
  var core_1 = require("@sentry/core");
@@ -26787,7 +26787,7 @@ var BrowserBackend = /** @class */ (function (_super) {
26787
26787
  }(core_1.BaseBackend));
26788
26788
  exports.BrowserBackend = BrowserBackend;
26789
26789
 
26790
- },{"./eventbuilder":191,"./transports":207,"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],190:[function(require,module,exports){
26790
+ },{"./eventbuilder":191,"./transports":207,"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],190:[function(require,module,exports){
26791
26791
  Object.defineProperty(exports, "__esModule", { value: true });
26792
26792
  var tslib_1 = require("tslib");
26793
26793
  var core_1 = require("@sentry/core");
@@ -26864,7 +26864,7 @@ var BrowserClient = /** @class */ (function (_super) {
26864
26864
  }(core_1.BaseClient));
26865
26865
  exports.BrowserClient = BrowserClient;
26866
26866
 
26867
- },{"./backend":189,"./helpers":193,"./integrations":198,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],191:[function(require,module,exports){
26867
+ },{"./backend":189,"./helpers":193,"./integrations":198,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],191:[function(require,module,exports){
26868
26868
  Object.defineProperty(exports, "__esModule", { value: true });
26869
26869
  var tslib_1 = require("tslib");
26870
26870
  var types_1 = require("@sentry/types");
@@ -26989,7 +26989,7 @@ function eventFromString(input, syntheticException, options) {
26989
26989
  }
26990
26990
  exports.eventFromString = eventFromString;
26991
26991
 
26992
- },{"./parsers":202,"./tracekit":204,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],192:[function(require,module,exports){
26992
+ },{"./parsers":202,"./tracekit":204,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],192:[function(require,module,exports){
26993
26993
  Object.defineProperty(exports, "__esModule", { value: true });
26994
26994
  var types_1 = require("@sentry/types");
26995
26995
  exports.Severity = types_1.Severity;
@@ -27199,7 +27199,7 @@ function injectReportDialog(options) {
27199
27199
  }
27200
27200
  exports.injectReportDialog = injectReportDialog;
27201
27201
 
27202
- },{"@sentry/core":213,"@sentry/utils":238,"tslib":313}],194:[function(require,module,exports){
27202
+ },{"@sentry/core":213,"@sentry/utils":238,"tslib":314}],194:[function(require,module,exports){
27203
27203
  Object.defineProperty(exports, "__esModule", { value: true });
27204
27204
  var tslib_1 = require("tslib");
27205
27205
  tslib_1.__exportStar(require("./exports"), exports);
@@ -27217,7 +27217,7 @@ if (_window.Sentry && _window.Sentry.Integrations) {
27217
27217
  var INTEGRATIONS = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, windowIntegrations), core_1.Integrations), BrowserIntegrations);
27218
27218
  exports.Integrations = INTEGRATIONS;
27219
27219
 
27220
- },{"./exports":192,"./integrations":198,"./transports":207,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],195:[function(require,module,exports){
27220
+ },{"./exports":192,"./integrations":198,"./transports":207,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],195:[function(require,module,exports){
27221
27221
  Object.defineProperty(exports, "__esModule", { value: true });
27222
27222
  var tslib_1 = require("tslib");
27223
27223
  /* eslint-disable @typescript-eslint/no-unsafe-member-access */
@@ -27487,7 +27487,7 @@ var Breadcrumbs = /** @class */ (function () {
27487
27487
  }());
27488
27488
  exports.Breadcrumbs = Breadcrumbs;
27489
27489
 
27490
- },{"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],196:[function(require,module,exports){
27490
+ },{"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],196:[function(require,module,exports){
27491
27491
  Object.defineProperty(exports, "__esModule", { value: true });
27492
27492
  /** Deduplication filter */
27493
27493
  var Dedupe = /** @class */ (function () {
@@ -27857,7 +27857,7 @@ var GlobalHandlers = /** @class */ (function () {
27857
27857
  }());
27858
27858
  exports.GlobalHandlers = GlobalHandlers;
27859
27859
 
27860
- },{"../eventbuilder":191,"../helpers":193,"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],198:[function(require,module,exports){
27860
+ },{"../eventbuilder":191,"../helpers":193,"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],198:[function(require,module,exports){
27861
27861
  Object.defineProperty(exports, "__esModule", { value: true });
27862
27862
  var globalhandlers_1 = require("./globalhandlers");
27863
27863
  exports.GlobalHandlers = globalhandlers_1.GlobalHandlers;
@@ -27939,7 +27939,7 @@ var LinkedErrors = /** @class */ (function () {
27939
27939
  }());
27940
27940
  exports.LinkedErrors = LinkedErrors;
27941
27941
 
27942
- },{"../parsers":202,"../tracekit":204,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],200:[function(require,module,exports){
27942
+ },{"../parsers":202,"../tracekit":204,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],200:[function(require,module,exports){
27943
27943
  Object.defineProperty(exports, "__esModule", { value: true });
27944
27944
  var tslib_1 = require("tslib");
27945
27945
  var utils_1 = require("@sentry/utils");
@@ -28171,7 +28171,7 @@ var TryCatch = /** @class */ (function () {
28171
28171
  }());
28172
28172
  exports.TryCatch = TryCatch;
28173
28173
 
28174
- },{"../helpers":193,"@sentry/utils":238,"tslib":313}],201:[function(require,module,exports){
28174
+ },{"../helpers":193,"@sentry/utils":238,"tslib":314}],201:[function(require,module,exports){
28175
28175
  Object.defineProperty(exports, "__esModule", { value: true });
28176
28176
  var tslib_1 = require("tslib");
28177
28177
  var core_1 = require("@sentry/core");
@@ -28215,7 +28215,7 @@ var UserAgent = /** @class */ (function () {
28215
28215
  }());
28216
28216
  exports.UserAgent = UserAgent;
28217
28217
 
28218
- },{"@sentry/core":213,"@sentry/utils":238,"tslib":313}],202:[function(require,module,exports){
28218
+ },{"@sentry/core":213,"@sentry/utils":238,"tslib":314}],202:[function(require,module,exports){
28219
28219
  Object.defineProperty(exports, "__esModule", { value: true });
28220
28220
  var utils_1 = require("@sentry/utils");
28221
28221
  var tracekit_1 = require("./tracekit");
@@ -28540,7 +28540,7 @@ function startSessionTracking() {
28540
28540
  });
28541
28541
  }
28542
28542
 
28543
- },{"./client":190,"./helpers":193,"./integrations":198,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],204:[function(require,module,exports){
28543
+ },{"./client":190,"./helpers":193,"./integrations":198,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],204:[function(require,module,exports){
28544
28544
  /**
28545
28545
  * This was originally forked from https://github.com/occ/TraceKit, but has since been
28546
28546
  * largely modified and is now maintained as part of Sentry JS SDK.
@@ -28771,7 +28771,7 @@ function extractMessage(ex) {
28771
28771
  return message;
28772
28772
  }
28773
28773
 
28774
- },{"tslib":313}],205:[function(require,module,exports){
28774
+ },{"tslib":314}],205:[function(require,module,exports){
28775
28775
  Object.defineProperty(exports, "__esModule", { value: true });
28776
28776
  var tslib_1 = require("tslib");
28777
28777
  var core_1 = require("@sentry/core");
@@ -28898,7 +28898,7 @@ var BaseTransport = /** @class */ (function () {
28898
28898
  }());
28899
28899
  exports.BaseTransport = BaseTransport;
28900
28900
 
28901
- },{"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],206:[function(require,module,exports){
28901
+ },{"@sentry/core":213,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],206:[function(require,module,exports){
28902
28902
  Object.defineProperty(exports, "__esModule", { value: true });
28903
28903
  var tslib_1 = require("tslib");
28904
28904
  var core_1 = require("@sentry/core");
@@ -29044,7 +29044,7 @@ var FetchTransport = /** @class */ (function (_super) {
29044
29044
  }(base_1.BaseTransport));
29045
29045
  exports.FetchTransport = FetchTransport;
29046
29046
 
29047
- },{"./base":205,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],207:[function(require,module,exports){
29047
+ },{"./base":205,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],207:[function(require,module,exports){
29048
29048
  Object.defineProperty(exports, "__esModule", { value: true });
29049
29049
  var base_1 = require("./base");
29050
29050
  exports.BaseTransport = base_1.BaseTransport;
@@ -29117,7 +29117,7 @@ var XHRTransport = /** @class */ (function (_super) {
29117
29117
  }(base_1.BaseTransport));
29118
29118
  exports.XHRTransport = XHRTransport;
29119
29119
 
29120
- },{"./base":205,"@sentry/core":213,"@sentry/utils":238,"tslib":313}],209:[function(require,module,exports){
29120
+ },{"./base":205,"@sentry/core":213,"@sentry/utils":238,"tslib":314}],209:[function(require,module,exports){
29121
29121
  Object.defineProperty(exports, "__esModule", { value: true });
29122
29122
  // TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkInfo metadata
29123
29123
  exports.SDK_NAME = 'sentry.javascript.browser';
@@ -29820,7 +29820,7 @@ var BaseClient = /** @class */ (function () {
29820
29820
  }());
29821
29821
  exports.BaseClient = BaseClient;
29822
29822
 
29823
- },{"./integration":214,"@sentry/hub":223,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],213:[function(require,module,exports){
29823
+ },{"./integration":214,"@sentry/hub":223,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],213:[function(require,module,exports){
29824
29824
  Object.defineProperty(exports, "__esModule", { value: true });
29825
29825
  var minimal_1 = require("@sentry/minimal");
29826
29826
  exports.addBreadcrumb = minimal_1.addBreadcrumb;
@@ -29932,7 +29932,7 @@ function setupIntegrations(options) {
29932
29932
  }
29933
29933
  exports.setupIntegrations = setupIntegrations;
29934
29934
 
29935
- },{"@sentry/hub":223,"@sentry/utils":238,"tslib":313}],215:[function(require,module,exports){
29935
+ },{"@sentry/hub":223,"@sentry/utils":238,"tslib":314}],215:[function(require,module,exports){
29936
29936
  Object.defineProperty(exports, "__esModule", { value: true });
29937
29937
  var originalFunctionToString;
29938
29938
  /** Patch toString calls to return proper name for wrapped functions */
@@ -30142,7 +30142,7 @@ var InboundFilters = /** @class */ (function () {
30142
30142
  }());
30143
30143
  exports.InboundFilters = InboundFilters;
30144
30144
 
30145
- },{"@sentry/hub":223,"@sentry/utils":238,"tslib":313}],217:[function(require,module,exports){
30145
+ },{"@sentry/hub":223,"@sentry/utils":238,"tslib":314}],217:[function(require,module,exports){
30146
30146
  Object.defineProperty(exports, "__esModule", { value: true });
30147
30147
  var functiontostring_1 = require("./functiontostring");
30148
30148
  exports.FunctionToString = functiontostring_1.FunctionToString;
@@ -30233,7 +30233,7 @@ function eventToSentryRequest(event, api) {
30233
30233
  }
30234
30234
  exports.eventToSentryRequest = eventToSentryRequest;
30235
30235
 
30236
- },{"tslib":313}],219:[function(require,module,exports){
30236
+ },{"tslib":314}],219:[function(require,module,exports){
30237
30237
  Object.defineProperty(exports, "__esModule", { value: true });
30238
30238
  var hub_1 = require("@sentry/hub");
30239
30239
  var utils_1 = require("@sentry/utils");
@@ -30809,7 +30809,7 @@ function setHubOnCarrier(carrier, hub) {
30809
30809
  }
30810
30810
  exports.setHubOnCarrier = setHubOnCarrier;
30811
30811
 
30812
- },{"./scope":224,"./session":225,"@sentry/types":228,"@sentry/utils":238,"tslib":313}],223:[function(require,module,exports){
30812
+ },{"./scope":224,"./session":225,"@sentry/types":228,"@sentry/utils":238,"tslib":314}],223:[function(require,module,exports){
30813
30813
  Object.defineProperty(exports, "__esModule", { value: true });
30814
30814
  var scope_1 = require("./scope");
30815
30815
  exports.addGlobalEventProcessor = scope_1.addGlobalEventProcessor;
@@ -31274,7 +31274,7 @@ function addGlobalEventProcessor(callback) {
31274
31274
  }
31275
31275
  exports.addGlobalEventProcessor = addGlobalEventProcessor;
31276
31276
 
31277
- },{"@sentry/utils":238,"tslib":313}],225:[function(require,module,exports){
31277
+ },{"@sentry/utils":238,"tslib":314}],225:[function(require,module,exports){
31278
31278
  Object.defineProperty(exports, "__esModule", { value: true });
31279
31279
  var types_1 = require("@sentry/types");
31280
31280
  var utils_1 = require("@sentry/utils");
@@ -31707,7 +31707,7 @@ function startTransaction(context, customSamplingContext) {
31707
31707
  }
31708
31708
  exports.startTransaction = startTransaction;
31709
31709
 
31710
- },{"@sentry/hub":223,"tslib":313}],228:[function(require,module,exports){
31710
+ },{"@sentry/hub":223,"tslib":314}],228:[function(require,module,exports){
31711
31711
  Object.defineProperty(exports, "__esModule", { value: true });
31712
31712
  var loglevel_1 = require("./loglevel");
31713
31713
  exports.LogLevel = loglevel_1.LogLevel;
@@ -32074,7 +32074,7 @@ var Dsn = /** @class */ (function () {
32074
32074
  }());
32075
32075
  exports.Dsn = Dsn;
32076
32076
 
32077
- },{"./error":237,"tslib":313}],237:[function(require,module,exports){
32077
+ },{"./error":237,"tslib":314}],237:[function(require,module,exports){
32078
32078
  Object.defineProperty(exports, "__esModule", { value: true });
32079
32079
  var tslib_1 = require("tslib");
32080
32080
  var polyfill_1 = require("./polyfill");
@@ -32093,7 +32093,7 @@ var SentryError = /** @class */ (function (_super) {
32093
32093
  }(Error));
32094
32094
  exports.SentryError = SentryError;
32095
32095
 
32096
- },{"./polyfill":247,"tslib":313}],238:[function(require,module,exports){
32096
+ },{"./polyfill":247,"tslib":314}],238:[function(require,module,exports){
32097
32097
  Object.defineProperty(exports, "__esModule", { value: true });
32098
32098
  var tslib_1 = require("tslib");
32099
32099
  tslib_1.__exportStar(require("./async"), exports);
@@ -32115,7 +32115,7 @@ tslib_1.__exportStar(require("./supports"), exports);
32115
32115
  tslib_1.__exportStar(require("./syncpromise"), exports);
32116
32116
  tslib_1.__exportStar(require("./time"), exports);
32117
32117
 
32118
- },{"./async":234,"./browser":235,"./dsn":236,"./error":237,"./instrument":239,"./is":240,"./logger":241,"./memo":242,"./misc":243,"./node":244,"./object":245,"./path":246,"./promisebuffer":248,"./stacktrace":249,"./string":250,"./supports":251,"./syncpromise":252,"./time":253,"tslib":313}],239:[function(require,module,exports){
32118
+ },{"./async":234,"./browser":235,"./dsn":236,"./error":237,"./instrument":239,"./is":240,"./logger":241,"./memo":242,"./misc":243,"./node":244,"./object":245,"./path":246,"./promisebuffer":248,"./stacktrace":249,"./string":250,"./supports":251,"./syncpromise":252,"./time":253,"tslib":314}],239:[function(require,module,exports){
32119
32119
  Object.defineProperty(exports, "__esModule", { value: true });
32120
32120
  var tslib_1 = require("tslib");
32121
32121
  var is_1 = require("./is");
@@ -32660,7 +32660,7 @@ function instrumentUnhandledRejection() {
32660
32660
  };
32661
32661
  }
32662
32662
 
32663
- },{"./is":240,"./logger":241,"./misc":243,"./object":245,"./stacktrace":249,"./supports":251,"tslib":313}],240:[function(require,module,exports){
32663
+ },{"./is":240,"./logger":241,"./misc":243,"./object":245,"./stacktrace":249,"./supports":251,"tslib":314}],240:[function(require,module,exports){
32664
32664
  /* eslint-disable @typescript-eslint/no-explicit-any */
32665
32665
  /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
32666
32666
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -33600,7 +33600,7 @@ function dropUndefinedKeys(val) {
33600
33600
  exports.dropUndefinedKeys = dropUndefinedKeys;
33601
33601
 
33602
33602
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
33603
- },{"./browser":235,"./is":240,"./memo":242,"./stacktrace":249,"./string":250,"tslib":313}],246:[function(require,module,exports){
33603
+ },{"./browser":235,"./is":240,"./memo":242,"./stacktrace":249,"./string":250,"tslib":314}],246:[function(require,module,exports){
33604
33604
  // Slightly modified (no IE8 support, ES6) and transcribed to TypeScript
33605
33605
  // https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js
33606
33606
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -47379,7 +47379,7 @@ module.exports = function(stream, options) {
47379
47379
  return harker;
47380
47380
  }
47381
47381
 
47382
- },{"wildemitter":329}],294:[function(require,module,exports){
47382
+ },{"wildemitter":330}],294:[function(require,module,exports){
47383
47383
  arguments[4][132][0].apply(exports,arguments)
47384
47384
  },{"dup":132}],295:[function(require,module,exports){
47385
47385
  (function (global){(function (){
@@ -48326,7 +48326,7 @@ exports.WebRtcPeerSendonly = WebRtcPeerSendonly
48326
48326
  exports.WebRtcPeerSendrecv = WebRtcPeerSendrecv
48327
48327
  exports.hark = harkUtils
48328
48328
 
48329
- },{"events":100,"freeice":290,"hark":293,"inherits":294,"kurento-browser-extensions":296,"merge":299,"sdp-translator":309,"ua-parser-js":314,"uuid/v4":317}],298:[function(require,module,exports){
48329
+ },{"events":100,"freeice":290,"hark":293,"inherits":294,"kurento-browser-extensions":296,"merge":299,"sdp-translator":310,"ua-parser-js":315,"uuid/v4":318}],298:[function(require,module,exports){
48330
48330
  /*
48331
48331
  * (C) Copyright 2014 Kurento (http://kurento.org/)
48332
48332
  *
@@ -48614,15 +48614,17 @@ module.exports = function(input) {
48614
48614
  *******************************************************/
48615
48615
 
48616
48616
  var PodSocketClass,
48617
- PodUtility;
48618
-
48617
+ PodUtility,
48618
+ LogLevel
48619
48619
  if (typeof(require) !== 'undefined' && typeof(exports) !== 'undefined') {
48620
48620
  PodSocketClass = require('./socket.js');
48621
48621
  PodUtility = require('../utility/utility.js');
48622
+ LogLevel = require('../utility/logger.js');
48622
48623
  }
48623
48624
  else {
48624
48625
  PodSocketClass = POD.Socket;
48625
48626
  PodUtility = POD.AsyncUtility;
48627
+ LogLevel = POD.LogLevel;
48626
48628
  }
48627
48629
 
48628
48630
  var Utility = new PodUtility();
@@ -48661,6 +48663,7 @@ module.exports = function(input) {
48661
48663
  CLOSING: 2, // The connection is in the process of closing.
48662
48664
  CLOSED: 3 // The connection is closed or couldn't be opened.
48663
48665
  },
48666
+ logLevel = LogLevel(params.logLevel),
48664
48667
  isNode = Utility.isNode(),
48665
48668
  isSocketOpen = false,
48666
48669
  isDeviceRegister = false,
@@ -48723,7 +48726,8 @@ module.exports = function(input) {
48723
48726
  socketAddress: params.socketAddress,
48724
48727
  wsConnectionWaitTime: params.wsConnectionWaitTime,
48725
48728
  connectionCheckTimeout: params.connectionCheckTimeout,
48726
- connectionCheckTimeoutThreshold: params.connectionCheckTimeoutThreshold
48729
+ connectionCheckTimeoutThreshold: params.connectionCheckTimeoutThreshold,
48730
+ logLevel: logLevel
48727
48731
  });
48728
48732
 
48729
48733
  checkIfSocketHasOpennedTimeoutId = setTimeout(function () {
@@ -48957,9 +48961,12 @@ module.exports = function(input) {
48957
48961
 
48958
48962
  if (peerId !== undefined) {
48959
48963
  content.refresh = true;
48964
+ content.renew = false;
48965
+
48960
48966
  }
48961
48967
  else {
48962
48968
  content.renew = true;
48969
+ content.refresh = false;
48963
48970
  }
48964
48971
 
48965
48972
  pushSendData({
@@ -49311,7 +49318,7 @@ module.exports = function(input) {
49311
49318
  }
49312
49319
  })();
49313
49320
 
49314
- },{"../utility/utility.js":303,"./socket.js":302}],302:[function(require,module,exports){
49321
+ },{"../utility/logger.js":303,"../utility/utility.js":304,"./socket.js":302}],302:[function(require,module,exports){
49315
49322
  (function() {
49316
49323
  /*
49317
49324
  * Socket Module to connect and handle Socket functionalities
@@ -49336,12 +49343,45 @@ module.exports = function(input) {
49336
49343
  eventCallback = {},
49337
49344
  socket,
49338
49345
  waitForSocketToConnectTimeoutId,
49339
- forceCloseSocket = false,
49340
- forceCloseSocketTimeout,
49341
49346
  socketRealTimeStatusInterval,
49342
- sendPingTimeout,
49347
+ //sendPingTimeout,
49343
49348
  socketCloseTimeout,
49344
- forceCloseTimeout;
49349
+ forceCloseTimeout,
49350
+ logLevel = params.logLevel,
49351
+ pingController = new PingManager({waitTime: connectionCheckTimeout});
49352
+
49353
+
49354
+ function PingManager(params) {
49355
+ const config = {
49356
+ normalWaitTime: params.waitTime,
49357
+
49358
+ lastRequestTimeoutId: null,
49359
+ lastReceivedMessageTime: 0,
49360
+ }
49361
+
49362
+ return {
49363
+ setPingTimeout() {
49364
+ config.lastRequestTimeoutId = setInterval(()=>{
49365
+ ping();
49366
+ //this.watchForPingResponse();
49367
+ }, config.normalWaitTime)
49368
+ },
49369
+ resetPingLoop() {
49370
+ this.updateLastReceivedMessageTime();
49371
+ this.stopPingLoop();
49372
+ this.setPingTimeout();
49373
+ // this.retries = 0;
49374
+ },
49375
+ stopPingLoop(){
49376
+ // config.retries = 0;
49377
+ clearInterval(config.lastRequestTimeoutId);
49378
+ // clearTimeout(config.responseTimeoutId)
49379
+ },
49380
+ updateLastReceivedMessageTime() {
49381
+ config.lastReceivedMessageTime = new Date().getTime();
49382
+ },
49383
+ }
49384
+ }
49345
49385
 
49346
49386
  /*******************************************************
49347
49387
  * P R I V A T E M E T H O D S *
@@ -49373,59 +49413,26 @@ module.exports = function(input) {
49373
49413
 
49374
49414
  socket.onopen = function(event) {
49375
49415
  waitForSocketToConnect(function() {
49416
+ pingController.resetPingLoop();
49376
49417
  eventCallback["open"]();
49377
49418
  });
49378
49419
  }
49379
49420
 
49380
49421
  socket.onmessage = function(event) {
49422
+ pingController.resetPingLoop();
49423
+
49381
49424
  var messageData = JSON.parse(event.data);
49382
49425
  eventCallback["message"](messageData);
49383
-
49384
- /**
49385
- * To avoid manually closing socket's connection
49386
- */
49387
- forceCloseSocket = false;
49388
-
49389
- socketCloseTimeout && clearTimeout(socketCloseTimeout);
49390
- forceCloseTimeout && clearTimeout(forceCloseTimeout);
49391
-
49392
- socketCloseTimeout = setTimeout(function() {
49393
- /**
49394
- * If message's type is not 5, socket won't get any acknowledge packet,therefore
49395
- * you may think that connection has been closed and you would force socket
49396
- * to close, but before that you should make sure that connection is actually closed!
49397
- * for that, you must send a ping message and if that message don't get any
49398
- * responses too, you are allowed to manually kill socket connection.
49399
- */
49400
- ping();
49401
-
49402
- /**
49403
- * We set forceCloseSocket as true so that if your ping's response don't make it
49404
- * you close your socket
49405
- */
49406
- forceCloseSocket = true;
49407
-
49408
- /**
49409
- * If type of messages are not 5, you won't get ant ACK packets
49410
- * for that being said, we send a ping message to be sure of
49411
- * socket connection's state. The ping message should have an
49412
- * ACK, if not, you're allowed to close your socket after
49413
- * 4 * [connectionCheckTimeout] seconds
49414
- */
49415
- forceCloseTimeout = setTimeout(function() {
49416
- if (forceCloseSocket) {
49417
- socket.close();
49418
- }
49419
- }, connectionCheckTimeout);
49420
-
49421
- }, connectionCheckTimeout * 1.5);
49422
49426
  }
49423
49427
 
49424
49428
  socket.onclose = function(event) {
49429
+ pingController.stopPingLoop();
49430
+ logLevel.debug && console.debug("[Async][Socket.js] socket.onclose happened. EventData:", event);
49425
49431
  onCloseHandler(event);
49426
49432
  }
49427
49433
 
49428
49434
  socket.onerror = function(event) {
49435
+ logLevel.debug && console.debug("[Async][Socket.js] socket.onerror happened. EventData:", event);
49429
49436
  eventCallback["error"](event);
49430
49437
  }
49431
49438
  } catch (error) {
@@ -49438,9 +49445,7 @@ module.exports = function(input) {
49438
49445
  },
49439
49446
 
49440
49447
  onCloseHandler = function(event) {
49441
- sendPingTimeout && clearTimeout(sendPingTimeout);
49442
- socketCloseTimeout && clearTimeout(socketCloseTimeout);
49443
- forceCloseTimeout && clearTimeout(forceCloseTimeout);
49448
+ pingController.stopPingLoop();
49444
49449
  eventCallback["close"](event);
49445
49450
  },
49446
49451
 
@@ -49475,11 +49480,6 @@ module.exports = function(input) {
49475
49480
  data.trackerId = params.trackerId;
49476
49481
  }
49477
49482
 
49478
- sendPingTimeout && clearTimeout(sendPingTimeout);
49479
- sendPingTimeout = setTimeout(function() {
49480
- ping();
49481
- }, connectionCheckTimeout);
49482
-
49483
49483
  try {
49484
49484
  if (params.content) {
49485
49485
  data.content = JSON.stringify(params.content);
@@ -49512,9 +49512,7 @@ module.exports = function(input) {
49512
49512
  }
49513
49513
 
49514
49514
  this.close = function() {
49515
- sendPingTimeout && clearTimeout(sendPingTimeout);
49516
- socketCloseTimeout && clearTimeout(socketCloseTimeout);
49517
- forceCloseTimeout && clearTimeout(forceCloseTimeout);
49515
+ logLevel.debug && console.debug("[Async][Socket.js] Closing socket by call to this.close");
49518
49516
  socket.close();
49519
49517
  }
49520
49518
 
@@ -49533,6 +49531,42 @@ module.exports = function(input) {
49533
49531
  })();
49534
49532
 
49535
49533
  },{"isomorphic-ws":295}],303:[function(require,module,exports){
49534
+ function LogLevel(logLevel){
49535
+ let ll = logLevel || 2;
49536
+ switch (ll) {
49537
+ case 1:
49538
+ return {
49539
+ error: true,
49540
+ debug: false,
49541
+ info: false,
49542
+ }
49543
+ case 2:
49544
+ return {
49545
+ error: true,
49546
+ debug: true,
49547
+ info: false,
49548
+ }
49549
+ case 3:
49550
+ return {
49551
+ error: true,
49552
+ debug: true,
49553
+ info: true,
49554
+ }
49555
+ }
49556
+ }
49557
+
49558
+
49559
+ if (typeof module !== 'undefined' && typeof module.exports != 'undefined') {
49560
+ module.exports = LogLevel;
49561
+ }
49562
+ else {
49563
+ if (!window.POD) {
49564
+ window.POD = {};
49565
+ }
49566
+ window.POD.LogLevel = LogLevel;
49567
+ }
49568
+
49569
+ },{}],304:[function(require,module,exports){
49536
49570
  (function (global){(function (){
49537
49571
  (function() {
49538
49572
  /**
@@ -49760,7 +49794,7 @@ module.exports = function(input) {
49760
49794
  })();
49761
49795
 
49762
49796
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
49763
- },{}],304:[function(require,module,exports){
49797
+ },{}],305:[function(require,module,exports){
49764
49798
  var grammar = module.exports = {
49765
49799
  v: [{
49766
49800
  name: 'version',
@@ -50019,7 +50053,7 @@ Object.keys(grammar).forEach(function (key) {
50019
50053
  });
50020
50054
  });
50021
50055
 
50022
- },{}],305:[function(require,module,exports){
50056
+ },{}],306:[function(require,module,exports){
50023
50057
  var parser = require('./parser');
50024
50058
  var writer = require('./writer');
50025
50059
 
@@ -50029,7 +50063,7 @@ exports.parseFmtpConfig = parser.parseFmtpConfig;
50029
50063
  exports.parsePayloads = parser.parsePayloads;
50030
50064
  exports.parseRemoteCandidates = parser.parseRemoteCandidates;
50031
50065
 
50032
- },{"./parser":306,"./writer":307}],306:[function(require,module,exports){
50066
+ },{"./parser":307,"./writer":308}],307:[function(require,module,exports){
50033
50067
  var toIntIfInt = function (v) {
50034
50068
  return String(Number(v)) === v ? Number(v) : v;
50035
50069
  };
@@ -50124,7 +50158,7 @@ exports.parseRemoteCandidates = function (str) {
50124
50158
  return candidates;
50125
50159
  };
50126
50160
 
50127
- },{"./grammar":304}],307:[function(require,module,exports){
50161
+ },{"./grammar":305}],308:[function(require,module,exports){
50128
50162
  var grammar = require('./grammar');
50129
50163
 
50130
50164
  // customized util.format - discards excess arguments and can void middle ones
@@ -50240,7 +50274,7 @@ module.exports = function (session, opts) {
50240
50274
  return sdp.join('\r\n') + '\r\n';
50241
50275
  };
50242
50276
 
50243
- },{"./grammar":304}],308:[function(require,module,exports){
50277
+ },{"./grammar":305}],309:[function(require,module,exports){
50244
50278
  /* Copyright @ 2015 Atlassian Pty Ltd
50245
50279
  *
50246
50280
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -50281,7 +50315,7 @@ module.exports = function arrayEquals(array) {
50281
50315
  };
50282
50316
 
50283
50317
 
50284
- },{}],309:[function(require,module,exports){
50318
+ },{}],310:[function(require,module,exports){
50285
50319
  /* Copyright @ 2015 Atlassian Pty Ltd
50286
50320
  *
50287
50321
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -50299,7 +50333,7 @@ module.exports = function arrayEquals(array) {
50299
50333
 
50300
50334
  exports.Interop = require('./interop');
50301
50335
 
50302
- },{"./interop":310}],310:[function(require,module,exports){
50336
+ },{"./interop":311}],311:[function(require,module,exports){
50303
50337
  /* Copyright @ 2015 Atlassian Pty Ltd
50304
50338
  *
50305
50339
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -51184,7 +51218,7 @@ Interop.prototype.toUnifiedPlan = function(desc) {
51184
51218
  //#endregion
51185
51219
  };
51186
51220
 
51187
- },{"./array-equals":308,"./transform":311}],311:[function(require,module,exports){
51221
+ },{"./array-equals":309,"./transform":312}],312:[function(require,module,exports){
51188
51222
  /* Copyright @ 2015 Atlassian Pty Ltd
51189
51223
  *
51190
51224
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -51298,7 +51332,7 @@ exports.parse = function(sdp) {
51298
51332
  };
51299
51333
 
51300
51334
 
51301
- },{"sdp-transform":305}],312:[function(require,module,exports){
51335
+ },{"sdp-transform":306}],313:[function(require,module,exports){
51302
51336
  /* eslint-env node */
51303
51337
  'use strict';
51304
51338
 
@@ -52059,7 +52093,7 @@ SDPUtils.isValidSDP = function (blob) {
52059
52093
  if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object') {
52060
52094
  module.exports = SDPUtils;
52061
52095
  }
52062
- },{}],313:[function(require,module,exports){
52096
+ },{}],314:[function(require,module,exports){
52063
52097
  (function (global){(function (){
52064
52098
  /*! *****************************************************************************
52065
52099
  Copyright (c) Microsoft Corporation.
@@ -52347,7 +52381,7 @@ var __createBinding;
52347
52381
  });
52348
52382
 
52349
52383
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
52350
- },{}],314:[function(require,module,exports){
52384
+ },{}],315:[function(require,module,exports){
52351
52385
  /*!
52352
52386
  * UAParser.js v0.7.24
52353
52387
  * Lightweight JavaScript-based User-Agent string parser
@@ -53286,7 +53320,7 @@ var __createBinding;
53286
53320
 
53287
53321
  })(typeof window === 'object' ? window : this);
53288
53322
 
53289
- },{}],315:[function(require,module,exports){
53323
+ },{}],316:[function(require,module,exports){
53290
53324
  /**
53291
53325
  * Convert array of 16 byte values to UUID string format of the form:
53292
53326
  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
@@ -53314,7 +53348,7 @@ function bytesToUuid(buf, offset) {
53314
53348
 
53315
53349
  module.exports = bytesToUuid;
53316
53350
 
53317
- },{}],316:[function(require,module,exports){
53351
+ },{}],317:[function(require,module,exports){
53318
53352
  // Unique ID creation requires a high quality random # generator. In the
53319
53353
  // browser this is a little complicated due to unknown quality of Math.random()
53320
53354
  // and inconsistent support for the `crypto` API. We do the best we can via
@@ -53350,7 +53384,7 @@ if (getRandomValues) {
53350
53384
  };
53351
53385
  }
53352
53386
 
53353
- },{}],317:[function(require,module,exports){
53387
+ },{}],318:[function(require,module,exports){
53354
53388
  var rng = require('./lib/rng');
53355
53389
  var bytesToUuid = require('./lib/bytesToUuid');
53356
53390
 
@@ -53381,7 +53415,7 @@ function v4(options, buf, offset) {
53381
53415
 
53382
53416
  module.exports = v4;
53383
53417
 
53384
- },{"./lib/bytesToUuid":315,"./lib/rng":316}],318:[function(require,module,exports){
53418
+ },{"./lib/bytesToUuid":316,"./lib/rng":317}],319:[function(require,module,exports){
53385
53419
  /*
53386
53420
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
53387
53421
  *
@@ -53402,7 +53436,7 @@ var _adapter_factory = require('./adapter_factory.js');
53402
53436
  var adapter = (0, _adapter_factory.adapterFactory)({ window: typeof window === 'undefined' ? undefined : window });
53403
53437
  exports.default = adapter;
53404
53438
 
53405
- },{"./adapter_factory.js":319}],319:[function(require,module,exports){
53439
+ },{"./adapter_factory.js":320}],320:[function(require,module,exports){
53406
53440
  'use strict';
53407
53441
 
53408
53442
  Object.defineProperty(exports, "__esModule", {
@@ -53567,7 +53601,7 @@ function adapterFactory() {
53567
53601
 
53568
53602
  // Browser shims.
53569
53603
 
53570
- },{"./chrome/chrome_shim":320,"./common_shim":323,"./firefox/firefox_shim":324,"./safari/safari_shim":327,"./utils":328,"sdp":312}],320:[function(require,module,exports){
53604
+ },{"./chrome/chrome_shim":321,"./common_shim":324,"./firefox/firefox_shim":325,"./safari/safari_shim":328,"./utils":329,"sdp":313}],321:[function(require,module,exports){
53571
53605
  /*
53572
53606
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
53573
53607
  *
@@ -54316,7 +54350,7 @@ function fixNegotiationNeeded(window, browserDetails) {
54316
54350
  });
54317
54351
  }
54318
54352
 
54319
- },{"../utils.js":328,"./getdisplaymedia":321,"./getusermedia":322}],321:[function(require,module,exports){
54353
+ },{"../utils.js":329,"./getdisplaymedia":322,"./getusermedia":323}],322:[function(require,module,exports){
54320
54354
  /*
54321
54355
  * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
54322
54356
  *
@@ -54367,7 +54401,7 @@ function shimGetDisplayMedia(window, getSourceId) {
54367
54401
  };
54368
54402
  }
54369
54403
 
54370
- },{}],322:[function(require,module,exports){
54404
+ },{}],323:[function(require,module,exports){
54371
54405
  /*
54372
54406
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
54373
54407
  *
@@ -54572,7 +54606,7 @@ function shimGetUserMedia(window, browserDetails) {
54572
54606
  }
54573
54607
  }
54574
54608
 
54575
- },{"../utils.js":328}],323:[function(require,module,exports){
54609
+ },{"../utils.js":329}],324:[function(require,module,exports){
54576
54610
  /*
54577
54611
  * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
54578
54612
  *
@@ -54960,7 +54994,7 @@ function shimAddIceCandidateNullOrEmpty(window, browserDetails) {
54960
54994
  };
54961
54995
  }
54962
54996
 
54963
- },{"./utils":328,"sdp":312}],324:[function(require,module,exports){
54997
+ },{"./utils":329,"sdp":313}],325:[function(require,module,exports){
54964
54998
  /*
54965
54999
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
54966
55000
  *
@@ -55295,7 +55329,7 @@ function shimCreateAnswer(window) {
55295
55329
  };
55296
55330
  }
55297
55331
 
55298
- },{"../utils":328,"./getdisplaymedia":325,"./getusermedia":326}],325:[function(require,module,exports){
55332
+ },{"../utils":329,"./getdisplaymedia":326,"./getusermedia":327}],326:[function(require,module,exports){
55299
55333
  /*
55300
55334
  * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
55301
55335
  *
@@ -55334,7 +55368,7 @@ function shimGetDisplayMedia(window, preferredMediaSource) {
55334
55368
  };
55335
55369
  }
55336
55370
 
55337
- },{}],326:[function(require,module,exports){
55371
+ },{}],327:[function(require,module,exports){
55338
55372
  /*
55339
55373
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
55340
55374
  *
@@ -55411,7 +55445,7 @@ function shimGetUserMedia(window, browserDetails) {
55411
55445
  }
55412
55446
  }
55413
55447
 
55414
- },{"../utils":328}],327:[function(require,module,exports){
55448
+ },{"../utils":329}],328:[function(require,module,exports){
55415
55449
  /*
55416
55450
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
55417
55451
  *
@@ -55780,7 +55814,7 @@ function shimAudioContext(window) {
55780
55814
  window.AudioContext = window.webkitAudioContext;
55781
55815
  }
55782
55816
 
55783
- },{"../utils":328}],328:[function(require,module,exports){
55817
+ },{"../utils":329}],329:[function(require,module,exports){
55784
55818
  /*
55785
55819
  * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
55786
55820
  *
@@ -56051,7 +56085,7 @@ function filterStats(result, track, outbound) {
56051
56085
  return filteredResult;
56052
56086
  }
56053
56087
 
56054
- },{}],329:[function(require,module,exports){
56088
+ },{}],330:[function(require,module,exports){
56055
56089
  /*
56056
56090
  WildEmitter.js is a slim little event emitter by @henrikjoreteg largely based
56057
56091
  on @visionmedia's Emitter from UI Kit.
@@ -56208,7 +56242,7 @@ WildEmitter.mixin = function (constructor) {
56208
56242
 
56209
56243
  WildEmitter.mixin(WildEmitter);
56210
56244
 
56211
- },{}],330:[function(require,module,exports){
56245
+ },{}],331:[function(require,module,exports){
56212
56246
  (function () {
56213
56247
  /**
56214
56248
  * Global Variables
@@ -60553,7 +60587,7 @@ WildEmitter.mixin(WildEmitter);
60553
60587
  }
60554
60588
  })();
60555
60589
 
60556
- },{"kurento-utils":298,"webrtc-adapter":318}],331:[function(require,module,exports){
60590
+ },{"kurento-utils":298,"webrtc-adapter":319}],332:[function(require,module,exports){
60557
60591
  'use strict';
60558
60592
 
60559
60593
  (function () {
@@ -60598,7 +60632,7 @@ WildEmitter.mixin(WildEmitter);
60598
60632
 
60599
60633
  if (!!Sentry) {
60600
60634
  Sentry.init({
60601
- dsn: 'http://784a14966f6a416b8b58a4b144aef0f5@talksentry.sakku-khatam.ir:9000/4',
60635
+ dsn: 'https://784a14966f6a416b8b58a4b144aef0f5:733b76b6354f4547a7428bb8c7489bf2@talksentry.sakku-khatam.ir/4',
60602
60636
  attachStacktrace: true
60603
60637
  });
60604
60638
  Sentry.setContext("Chat Params", params);
@@ -61064,7 +61098,8 @@ WildEmitter.mixin(WildEmitter);
61064
61098
  connectionCheckTimeoutThreshold: connectionCheckTimeoutThreshold,
61065
61099
  messageTtl: messageTtl,
61066
61100
  reconnectOnClose: reconnectOnClose,
61067
- asyncLogging: asyncLogging
61101
+ asyncLogging: asyncLogging,
61102
+ logLevel: (consoleLogging ? 3 : 1)
61068
61103
  });
61069
61104
  callModule.asyncInitialized(asyncClient);
61070
61105
  chatMessaging.asyncInitialized(asyncClient);
@@ -74807,7 +74842,7 @@ WildEmitter.mixin(WildEmitter);
74807
74842
  }
74808
74843
  })();
74809
74844
 
74810
- },{"./call.module.js":330,"./events.module.js":332,"./messaging.module.js":333,"./utility/utility.js":334,"@sentry/browser":194,"dexie":288,"podasync-ws-only":301}],332:[function(require,module,exports){
74845
+ },{"./call.module.js":331,"./events.module.js":333,"./messaging.module.js":334,"./utility/utility.js":335,"@sentry/browser":194,"dexie":288,"podasync-ws-only":301}],333:[function(require,module,exports){
74811
74846
  (function () {
74812
74847
  /**
74813
74848
  * Global Variables
@@ -74931,7 +74966,7 @@ WildEmitter.mixin(WildEmitter);
74931
74966
  }
74932
74967
  })();
74933
74968
 
74934
- },{}],333:[function(require,module,exports){
74969
+ },{}],334:[function(require,module,exports){
74935
74970
  (function () {
74936
74971
  /**
74937
74972
  * Global Variables
@@ -75243,7 +75278,7 @@ WildEmitter.mixin(WildEmitter);
75243
75278
  }
75244
75279
  })();
75245
75280
 
75246
- },{"dompurify":289}],334:[function(require,module,exports){
75281
+ },{"dompurify":289}],335:[function(require,module,exports){
75247
75282
  (function (global){(function (){
75248
75283
  (function() {
75249
75284
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podchat-browser",
3
- "version": "12.5.2-snapshot.0",
3
+ "version": "12.5.2-snapshot.3",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./src/chat.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  "faker": "^5.5.3",
41
41
  "kurento-utils": "^6.16.0",
42
42
  "node-rsa": "^1.1.1",
43
- "podasync-ws-only": "^2.7.9",
43
+ "podasync-ws-only": "^2.7.10-snapshot.1",
44
44
  "query-string": "^6.8.1",
45
45
  "webrtc-adapter": "^8.0.0"
46
46
  },
package/src/chat.js CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  if (!!Sentry) {
44
44
  Sentry.init({
45
- dsn: 'http://784a14966f6a416b8b58a4b144aef0f5@talksentry.sakku-khatam.ir:9000/4',
45
+ dsn: 'https://784a14966f6a416b8b58a4b144aef0f5:733b76b6354f4547a7428bb8c7489bf2@talksentry.sakku-khatam.ir/4',
46
46
  attachStacktrace: true
47
47
  });
48
48
  Sentry.setContext("Chat Params", params);
@@ -508,7 +508,8 @@
508
508
  connectionCheckTimeoutThreshold: connectionCheckTimeoutThreshold,
509
509
  messageTtl: messageTtl,
510
510
  reconnectOnClose: reconnectOnClose,
511
- asyncLogging: asyncLogging
511
+ asyncLogging: asyncLogging,
512
+ logLevel: (consoleLogging ? 3 : 1)
512
513
  });
513
514
  callModule.asyncInitialized(asyncClient);
514
515
  chatMessaging.asyncInitialized(asyncClient);