quickblox 2.17.13-logger → 2.17.15-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 +1 -1
- package/quickblox.js +13 -3
- package/quickblox.min.js +1 -1
- package/src/qbConfig.js +1 -1
- package/src/qbMain.js +8 -0
- package/src/qbStrophe.js +4 -2
package/package.json
CHANGED
package/quickblox.js
CHANGED
|
@@ -51494,7 +51494,7 @@ module.exports = StreamManagement;
|
|
|
51494
51494
|
*/
|
|
51495
51495
|
|
|
51496
51496
|
var config = {
|
|
51497
|
-
version: '2.17.
|
|
51497
|
+
version: '2.17.15-logger',
|
|
51498
51498
|
buildNumber: '1161',
|
|
51499
51499
|
creds: {
|
|
51500
51500
|
'appId': 0,
|
|
@@ -51879,6 +51879,14 @@ QuickBlox.prototype = {
|
|
|
51879
51879
|
* @param {Null | String} result - String (" ") if session was removed successfully.
|
|
51880
51880
|
* */
|
|
51881
51881
|
this.auth.logout(callback);
|
|
51882
|
+
},
|
|
51883
|
+
|
|
51884
|
+
getChat: function() {
|
|
51885
|
+
return this.chat;
|
|
51886
|
+
},
|
|
51887
|
+
|
|
51888
|
+
getLogger: function() {
|
|
51889
|
+
return this.chat? this.chat.onLogListener: null;
|
|
51882
51890
|
}
|
|
51883
51891
|
|
|
51884
51892
|
};
|
|
@@ -52212,9 +52220,11 @@ var QBModules = require('./qbMain');
|
|
|
52212
52220
|
function Connection(onLogListenerCallback) {
|
|
52213
52221
|
var protocol = chatPRTCL.active === 1 ? chatPRTCL.bosh : chatPRTCL.websocket;
|
|
52214
52222
|
var conn = new Strophe.Connection(protocol);
|
|
52215
|
-
var onLogListener = config.debug && (QBModules.
|
|
52223
|
+
var onLogListener = config.debug && (QBModules.getChat() || onLogListenerCallback)? onLogListenerCallback || QBModules.getChat().onLogListener : null;
|
|
52224
|
+
var chatLogger = Utils.QBLog;
|
|
52216
52225
|
var safeCallbackCall = function(message, data) {
|
|
52217
|
-
onLogListener = onLogListenerCallback || QBModules.
|
|
52226
|
+
onLogListener = onLogListenerCallback || QBModules.getChat() ? QBModules.getChat().onLogListener : null;
|
|
52227
|
+
chatLogger = QBModules.getLogger();
|
|
52218
52228
|
if (onLogListener && typeof onLogListener === 'function') {
|
|
52219
52229
|
Utils.safeCallbackCall(onLogListener,
|
|
52220
52230
|
'[QBChat][QBStrophe]' + message + data);
|