quickblox 2.17.3-logger → 2.17.5-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.5-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
 
@@ -43686,7 +43697,7 @@ ChatProxy.prototype = {
43686
43697
 
43687
43698
  if (typeof self.onLogListener === 'function') {
43688
43699
  Utils.safeCallbackCall(self.onLogListener,
43689
- '[QBChat]' + ' Status.ERROR at ' +
43700
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.ERROR at ' +
43690
43701
  chatUtils.getLocalTime()+ ' ERROR CONDITION: ' + condition);
43691
43702
  }
43692
43703
  self.isConnected = false;
@@ -43705,7 +43716,7 @@ ChatProxy.prototype = {
43705
43716
 
43706
43717
  if (typeof self.onLogListener === 'function') {
43707
43718
  Utils.safeCallbackCall(self.onLogListener,
43708
- '[QBChat]' + ' Status.CONNFAIL at ' +
43719
+ '[QBChat]' + '[SDK v'+config.version+']' +' Status.CONNFAIL at ' +
43709
43720
  chatUtils.getLocalTime()+ ' CONNFAIL CONDITION: ' + condition);
43710
43721
  }
43711
43722
  self.isConnected = false;
@@ -43724,7 +43735,7 @@ ChatProxy.prototype = {
43724
43735
 
43725
43736
  if (typeof self.onLogListener === 'function') {
43726
43737
  Utils.safeCallbackCall(self.onLogListener,
43727
- '[QBChat]' + ' Status.AUTHENTICATING at ' +
43738
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.AUTHENTICATING at ' +
43728
43739
  chatUtils.getLocalTime()+ ' AUTHENTICATING CONDITION: ' + condition);
43729
43740
  }
43730
43741
  break;
@@ -43734,7 +43745,7 @@ ChatProxy.prototype = {
43734
43745
 
43735
43746
  if (typeof self.onLogListener === 'function') {
43736
43747
  Utils.safeCallbackCall(self.onLogListener,
43737
- '[QBChat]' + ' Status.AUTHFAIL at ' +
43748
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.AUTHFAIL at ' +
43738
43749
  chatUtils.getLocalTime()+ ' AUTHFAIL CONDITION: ' + condition);
43739
43750
  }
43740
43751
  self.isConnected = false;
@@ -43758,7 +43769,7 @@ ChatProxy.prototype = {
43758
43769
 
43759
43770
  if (typeof self.onLogListener === 'function') {
43760
43771
  Utils.safeCallbackCall(self.onLogListener,
43761
- '[QBChat]' + ' Status.CONNECTING at ' + '(Chat Protocol - ' + config.chatProtocol.active === 1 ? 'BOSH' : 'WebSocket' + ')'+
43772
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.CONNECTING at ' + '(Chat Protocol - ' + config.chatProtocol.active === 1 ? 'BOSH' : 'WebSocket' + ')'+
43762
43773
  chatUtils.getLocalTime()+ ' CONNECTING CONDITION: ' + condition);
43763
43774
  }
43764
43775
  break;
@@ -43768,7 +43779,7 @@ ChatProxy.prototype = {
43768
43779
 
43769
43780
  if (typeof self.onLogListener === 'function') {
43770
43781
  Utils.safeCallbackCall(self.onLogListener,
43771
- '[QBChat]' + ' Status.CONNECTED at ' +
43782
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.CONNECTED at ' +
43772
43783
  chatUtils.getLocalTime()+ ' CONNECTED CONDITION: ' + condition);
43773
43784
  }
43774
43785
  // Remove any handlers that might exist from a previous connection via
@@ -43851,7 +43862,7 @@ ChatProxy.prototype = {
43851
43862
 
43852
43863
  if (typeof self.onLogListener === 'function') {
43853
43864
  Utils.safeCallbackCall(self.onLogListener,
43854
- '[QBChat]' + ' Status.DISCONNECTING at ' +
43865
+ '[QBChat]' + '[SDK v'+config.version+']' +' Status.DISCONNECTING at ' +
43855
43866
  chatUtils.getLocalTime()+ ' DISCONNECTING CONDITION: ' + condition);
43856
43867
  }
43857
43868
  break;
@@ -43861,7 +43872,7 @@ ChatProxy.prototype = {
43861
43872
 
43862
43873
  if (typeof self.onLogListener === 'function') {
43863
43874
  Utils.safeCallbackCall(self.onLogListener,
43864
- '[QBChat]' + ' Status.DISCONNECTED at ' +
43875
+ '[QBChat]' + '[SDK v'+config.version+']' +' Status.DISCONNECTED at ' +
43865
43876
  chatUtils.getLocalTime()+ ' DISCONNECTED CONDITION: ' + condition);
43866
43877
  }
43867
43878
  // fire 'onDisconnectedListener' only once
@@ -43883,7 +43894,7 @@ ChatProxy.prototype = {
43883
43894
 
43884
43895
  if (typeof self.onLogListener === 'function') {
43885
43896
  Utils.safeCallbackCall(self.onLogListener,
43886
- '[QBChat]' + ' Status.ATTACHED at ' +
43897
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.ATTACHED at ' +
43887
43898
  chatUtils.getLocalTime()+ ' ATTACHED CONDITION: ' + condition);
43888
43899
  }
43889
43900
  break;
@@ -43893,7 +43904,7 @@ ChatProxy.prototype = {
43893
43904
 
43894
43905
  if (typeof self.onLogListener === 'function') {
43895
43906
  Utils.safeCallbackCall(self.onLogListener,
43896
- '[QBChat]' + ' Status.REDIRECT at ' +
43907
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.REDIRECT at ' +
43897
43908
  chatUtils.getLocalTime()+ ' REDIRECT CONDITION: ' + condition);
43898
43909
  }
43899
43910
  break;
@@ -43903,7 +43914,7 @@ ChatProxy.prototype = {
43903
43914
 
43904
43915
  if (typeof self.onLogListener === 'function') {
43905
43916
  Utils.safeCallbackCall(self.onLogListener,
43906
- '[QBChat]' + ' Status.CONNTIMEOUT at ' +
43917
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.CONNTIMEOUT at ' +
43907
43918
  chatUtils.getLocalTime()+ ' CONNTIMEOUT CONDITION: ' + condition);
43908
43919
  }
43909
43920
  break;
@@ -43913,7 +43924,7 @@ ChatProxy.prototype = {
43913
43924
 
43914
43925
  if (typeof self.onLogListener === 'function') {
43915
43926
  Utils.safeCallbackCall(self.onLogListener,
43916
- '[QBChat]' + ' Status.BINDREQUIRED at ' +
43927
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status.BINDREQUIRED at ' +
43917
43928
  chatUtils.getLocalTime()+ ' BINDREQUIRED CONDITION: ' + condition);
43918
43929
  }
43919
43930
  break;
@@ -43923,7 +43934,7 @@ ChatProxy.prototype = {
43923
43934
 
43924
43935
  if (typeof self.onLogListener === 'function') {
43925
43936
  Utils.safeCallbackCall(self.onLogListener,
43926
- '[QBChat]' + ' Status.ATTACHFAIL at ' +
43937
+ '[QBChat]' + '[SDK v'+config.version+']' +' Status.ATTACHFAIL at ' +
43927
43938
  chatUtils.getLocalTime()+ ' ATTACHFAIL CONDITION: ' + condition);
43928
43939
  }
43929
43940
  break;
@@ -43934,18 +43945,18 @@ ChatProxy.prototype = {
43934
43945
 
43935
43946
  if (typeof self.onLogListener === 'function') {
43936
43947
  Utils.safeCallbackCall(self.onLogListener,
43937
- '[QBChat]' + ' Status is unknown at ' +
43948
+ '[QBChat]' +'[SDK v'+config.version+']' + ' Status is unknown at ' +
43938
43949
  chatUtils.getLocalTime()+ ' unknown CONDITION: ' + condition);
43939
43950
  }
43940
43951
  break;
43941
43952
  }
43942
43953
  }, function (logLine){
43943
- Utils.QBLog('[QBChat]', 'LOG strophe.js at ' + chatUtils.getLocalTime());
43944
- Utils.QBLog('[QBChat]', 'LOG strophe.js: ' + logLine);
43954
+ Utils.QBLog('[QBChat]'+'[SDK v'+config.version+']', 'LOG strophe.js at ' + chatUtils.getLocalTime());
43955
+ Utils.QBLog('[QBChat]'+'[SDK v'+config.version+']', 'LOG strophe.js: ' + logLine);
43945
43956
 
43946
43957
  if (typeof self.onLogListener === 'function') {
43947
43958
  Utils.safeCallbackCall(self.onLogListener,
43948
- '[QBChat]' + ' LOG strophe.js at ' +
43959
+ '[QBChat]' + '[SDK v'+config.version+']' +' LOG strophe.js at ' +
43949
43960
  chatUtils.getLocalTime()+ ' LOG strophe.js: ' + logLine);
43950
43961
  }
43951
43962
  });
@@ -50963,7 +50974,7 @@ module.exports = WebRTCSignalingConstants;
50963
50974
  */
50964
50975
 
50965
50976
  // require('strophe.js');
50966
- require('./libs/strophe/strophe.umd.js');
50977
+ require('../../libs/strophe/strophe.umd.js');
50967
50978
 
50968
50979
  var SignalingConstants = require('./qbWebRTCSignalingConstants');
50969
50980
 
@@ -51113,7 +51124,7 @@ function WebRTCSignalingProcessor(service, delegate) {
51113
51124
 
51114
51125
  module.exports = WebRTCSignalingProcessor;
51115
51126
 
51116
- },{"./libs/strophe/strophe.umd.js":undefined,"./qbWebRTCSignalingConstants":243}],245:[function(require,module,exports){
51127
+ },{"../../libs/strophe/strophe.umd.js":227,"./qbWebRTCSignalingConstants":243}],245:[function(require,module,exports){
51117
51128
  'use strict';
51118
51129
 
51119
51130
  /** JSHint inline rules */
@@ -51125,7 +51136,7 @@ module.exports = WebRTCSignalingProcessor;
51125
51136
  */
51126
51137
 
51127
51138
  // require('strophe.js');
51128
- require('./libs/strophe/strophe.umd.js');
51139
+ require('../../libs/strophe/strophe.umd.js');
51129
51140
 
51130
51141
  var Helpers = require('./qbWebRTCHelpers');
51131
51142
  var SignalingConstants = require('./qbWebRTCSignalingConstants');
@@ -51221,7 +51232,7 @@ WebRTCSignalingProvider.prototype._JStoXML = function (title, obj, msg) {
51221
51232
 
51222
51233
  module.exports = WebRTCSignalingProvider;
51223
51234
 
51224
- },{"../../qbConfig":247,"../../qbUtils":251,"./libs/strophe/strophe.umd.js":undefined,"./qbWebRTCHelpers":241,"./qbWebRTCSignalingConstants":243}],246:[function(require,module,exports){
51235
+ },{"../../libs/strophe/strophe.umd.js":227,"../../qbConfig":247,"../../qbUtils":251,"./qbWebRTCHelpers":241,"./qbWebRTCSignalingConstants":243}],246:[function(require,module,exports){
51225
51236
  'use strict';
51226
51237
 
51227
51238
  /**
@@ -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.5-logger',
51477
51488
  buildNumber: '1161',
51478
51489
  creds: {
51479
51490
  'appId': 0,