quickblox 2.17.7-logger → 2.17.8-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 +5 -3
- package/quickblox.min.js +1 -1
- package/src/qbConfig.js +1 -1
- package/src/qbStrophe.js +3 -1
package/src/qbConfig.js
CHANGED
package/src/qbStrophe.js
CHANGED
|
@@ -13,10 +13,12 @@ require('./libs/strophe/strophe.umd.js');
|
|
|
13
13
|
var config = require('./qbConfig');
|
|
14
14
|
var chatPRTCL = config.chatProtocol;
|
|
15
15
|
var Utils = require('./qbUtils');
|
|
16
|
+
var QBChatModules = require('./modules/qbChat');
|
|
16
17
|
|
|
17
|
-
function Connection(
|
|
18
|
+
function Connection(onLogListenerCallback) {
|
|
18
19
|
var protocol = chatPRTCL.active === 1 ? chatPRTCL.bosh : chatPRTCL.websocket;
|
|
19
20
|
var conn = new Strophe.Connection(protocol);
|
|
21
|
+
var onLogListener = onLogListenerCallback || QBChatModules.onLogListener;
|
|
20
22
|
|
|
21
23
|
if (chatPRTCL.active === 1) {
|
|
22
24
|
conn.xmlInput = function(data) {
|