quickblox 2.17.2-beta.1-logger → 2.17.2-beta.2-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 +6 -23
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +0 -22
- package/src/qbConfig.js +1 -1
- package/src/qbStrophe.js +5 -0
package/package.json
CHANGED
package/quickblox.js
CHANGED
|
@@ -46330,28 +46330,6 @@ ChatProxy.prototype = {
|
|
|
46330
46330
|
break;
|
|
46331
46331
|
}
|
|
46332
46332
|
});
|
|
46333
|
-
// connection error handler
|
|
46334
|
-
self.connection.xmlInput = function (data) {
|
|
46335
|
-
try {
|
|
46336
|
-
let parser = new DOMParser();
|
|
46337
|
-
let xmlDoc = parser.parseFromString(data, 'text/xml');
|
|
46338
|
-
|
|
46339
|
-
let errorElem = xmlDoc.getElementsByTagName('error');
|
|
46340
|
-
if (errorElem.length > 0) {
|
|
46341
|
-
let conditionElem = errorElem[0].getElementsByTagName('condition');
|
|
46342
|
-
if (conditionElem.length > 0) {
|
|
46343
|
-
disconnectCondition = conditionElem[0].textContent;
|
|
46344
|
-
console.log('Disconnect condition:', disconnectCondition);
|
|
46345
|
-
if (typeof self.onLogListener === 'function') {
|
|
46346
|
-
Utils.safeCallbackCall(self.onLogListener,
|
|
46347
|
-
'[QBChat]' + ' DISCONNECTED CONDITION: ' + disconnectCondition);
|
|
46348
|
-
}
|
|
46349
|
-
}
|
|
46350
|
-
}
|
|
46351
|
-
} catch (e) {
|
|
46352
|
-
console.error('Error parsing XML input:', e);
|
|
46353
|
-
}
|
|
46354
|
-
};
|
|
46355
46333
|
}
|
|
46356
46334
|
|
|
46357
46335
|
/** connect for node */
|
|
@@ -53874,7 +53852,7 @@ module.exports = StreamManagement;
|
|
|
53874
53852
|
*/
|
|
53875
53853
|
|
|
53876
53854
|
var config = {
|
|
53877
|
-
version: '2.17.2-beta.
|
|
53855
|
+
version: '2.17.2-beta.2-logger',
|
|
53878
53856
|
buildNumber: '1162',
|
|
53879
53857
|
creds: {
|
|
53880
53858
|
'appId': 0,
|
|
@@ -54609,6 +54587,11 @@ function Connection(onLogListener) {
|
|
|
54609
54587
|
} else {
|
|
54610
54588
|
conn.xmlInput = function(data) {
|
|
54611
54589
|
Utils.QBLog('[QBChat]', 'RECV:', data);
|
|
54590
|
+
//
|
|
54591
|
+
if (onLogListener && typeof onLogListener === 'function') {
|
|
54592
|
+
Utils.safeCallbackCall(onLogListener,
|
|
54593
|
+
'[QBChat][QBStrophe]' + 'RECV: ' + data);
|
|
54594
|
+
}
|
|
54612
54595
|
//
|
|
54613
54596
|
try {
|
|
54614
54597
|
let parser = new DOMParser();
|