quickblox 2.17.3-logger → 2.17.4-logger

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickblox",
3
3
  "description": "QuickBlox JavaScript SDK",
4
- "version": "2.17.3-logger",
4
+ "version": "2.17.4-logger",
5
5
  "homepage": "https://quickblox.com/developers/Javascript",
6
6
  "main": "src/qbMain.js",
7
7
  "types": "quickblox.d.ts",
package/quickblox.js CHANGED
@@ -38958,6 +38958,8 @@ function extend() {
38958
38958
  error.name = 'StropheSessionError';
38959
38959
  throw error;
38960
38960
  }
38961
+
38962
+ if (this.clientLogger) this.clientLogger('Strophe call unexpected method restore.');
38961
38963
  }
38962
38964
  /** PrivateFunction: _sessionCachingSupported
38963
38965
  * Checks whether sessionStorage and JSON are supported and whether we're
@@ -39318,6 +39320,7 @@ function extend() {
39318
39320
  this._idleTimeout = setTimeout(function () {
39319
39321
  return _this5._onIdle();
39320
39322
  }, 100);
39323
+ if (this.clientLogger) this.clientLogger('Strophe _sendRestart method is called.');
39321
39324
  }
39322
39325
  /** Function: addTimedHandler
39323
39326
  * Add a timed handler to the connection.
@@ -39524,8 +39527,10 @@ function extend() {
39524
39527
 
39525
39528
  if (reason) {
39526
39529
  Strophe.warn("Disconnect was called because: " + reason);
39530
+ if (this.clientLogger) this.clientLogger('Disconnect was called because: ' + reason);
39527
39531
  } else {
39528
39532
  Strophe.info("Disconnect was called");
39533
+ if (this.clientLogger) this.clientLogger('Disconnect was called');
39529
39534
  }
39530
39535
 
39531
39536
  if (this.connected) {
@@ -39545,6 +39550,7 @@ function extend() {
39545
39550
  this._proto._disconnect(pres);
39546
39551
  } else {
39547
39552
  Strophe.warn("Disconnect was called before Strophe connected to the server");
39553
+ if (this.clientLogger) this.clientLogger('Disconnect was called before Strophe connected to the server');
39548
39554
 
39549
39555
  this._proto._abortAllRequests();
39550
39556
 
@@ -42210,7 +42216,7 @@ function extend() {
42210
42216
  return _this._onInitialMessage(message);
42211
42217
  };
42212
42218
 
42213
- this._conn.clientLogger('_connect method was called with WebSocket protocol');
42219
+ if (this._conn.clientLogger) this._conn.clientLogger('_connect method was called with WebSocket protocol');
42214
42220
  }
42215
42221
  /** PrivateFunction: _connect_cb
42216
42222
  * _Private_ function called by Strophe.Connection._connect_cb
@@ -42402,6 +42408,7 @@ function extend() {
42402
42408
  key: "_doDisconnect",
42403
42409
  value: function _doDisconnect() {
42404
42410
  Strophe.debug("WebSockets _doDisconnect was called");
42411
+ if (this._conn.clientLogger) this._conn.clientLogger('WebSockets _doDisconnect was called');
42405
42412
 
42406
42413
  this._closeSocket();
42407
42414
  }
@@ -42433,6 +42440,7 @@ function extend() {
42433
42440
  this.socket.close();
42434
42441
  } catch (e) {
42435
42442
  Strophe.debug(e.message);
42443
+ if (this._conn.clientLogger) this._conn.clientLogger(e.message);
42436
42444
  }
42437
42445
  }
42438
42446
 
@@ -42468,6 +42476,7 @@ function extend() {
42468
42476
  // dispatch a CONNFAIL status update to be consistent with the
42469
42477
  // behavior on other browsers.
42470
42478
  Strophe.error("Websocket closed unexcectedly");
42479
+ if (this._conn.clientLogger) this._conn.clientLogger('Websocket closed unexcectedly');
42471
42480
 
42472
42481
  this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established or was disconnected.");
42473
42482
 
@@ -42524,6 +42533,7 @@ function extend() {
42524
42533
  key: "_onError",
42525
42534
  value: function _onError(error) {
42526
42535
  Strophe.error("Websocket error " + error);
42536
+ if (this._conn.clientLogger) this._conn.clientLogger('Websocket error ' + error);
42527
42537
 
42528
42538
  this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established or was disconnected.");
42529
42539
 
@@ -42761,8 +42771,7 @@ function extend() {
42761
42771
  };
42762
42772
 
42763
42773
  this.worker.port.postMessage(['_connect', this._conn.service, this._conn.jid]);
42764
-
42765
- this._conn.clientLogger('_connect method was called with WebSocket worker protocol');
42774
+ if (this._conn.clientLogger) this._conn.clientLogger('_connect method was called with WebSocket worker protocol');
42766
42775
  }
42767
42776
  }, {
42768
42777
  key: "_attach",
@@ -42823,6 +42832,7 @@ function extend() {
42823
42832
  value: function _onClose(e) {
42824
42833
  if (this._conn.connected && !this._conn.disconnecting) {
42825
42834
  Strophe.error("Websocket closed unexpectedly");
42835
+ if (this._conn.clientLogger) this._conn.clientLogger("Websocket closed unexpectedly");
42826
42836
 
42827
42837
  this._conn._doDisconnect();
42828
42838
  } else if (e && e.code === 1006 && !this._conn.connected) {
@@ -42831,6 +42841,7 @@ function extend() {
42831
42841
  // dispatch a CONNFAIL status update to be consistent with the
42832
42842
  // behavior on other browsers.
42833
42843
  Strophe.error("Websocket closed unexcectedly");
42844
+ if (this._conn.clientLogger) this._conn.clientLogger("Websocket closed unexpectedly");
42834
42845
 
42835
42846
  this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established or was disconnected.");
42836
42847
 
@@ -51473,7 +51484,7 @@ module.exports = StreamManagement;
51473
51484
  */
51474
51485
 
51475
51486
  var config = {
51476
- version: '2.17.3-logger',
51487
+ version: '2.17.4-logger',
51477
51488
  buildNumber: '1161',
51478
51489
  creds: {
51479
51490
  'appId': 0,