quickblox 2.15.4 → 2.15.5
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/README.md +1 -1
- package/package.json +1 -1
- package/quickblox.js +10 -9
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +4 -4
- package/src/qbConfig.js +5 -4
- package/src/qbMain.js +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
|
|
|
16
16
|
## Dependencies for browser
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
|
-
<script src="https://unpkg.com/quickblox@2.15.
|
|
19
|
+
<script src="https://unpkg.com/quickblox@2.15.5/quickblox.min.js"></script>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Bower and RequireJS
|
package/package.json
CHANGED
package/quickblox.js
CHANGED
|
@@ -46157,11 +46157,11 @@ ChatProxy.prototype = {
|
|
|
46157
46157
|
'failed, at ', Utils.getCurrentTime(),
|
|
46158
46158
|
'_chatPingFailedCounter: ', self._chatPingFailedCounter,
|
|
46159
46159
|
' error: ', error);
|
|
46160
|
-
self.
|
|
46160
|
+
self._chatPingFailedCounter += 1;
|
|
46161
46161
|
if (self._chatPingFailedCounter > 6) {
|
|
46162
46162
|
self.isConnected = false;
|
|
46163
46163
|
self._isConnecting = false;
|
|
46164
|
-
self.
|
|
46164
|
+
self._chatPingFailedCounter = 0;
|
|
46165
46165
|
self._establishConnection(params);
|
|
46166
46166
|
}
|
|
46167
46167
|
} else {
|
|
@@ -46169,7 +46169,7 @@ ChatProxy.prototype = {
|
|
|
46169
46169
|
'Chat Ping: ',
|
|
46170
46170
|
'ok, at ', Utils.getCurrentTime(),
|
|
46171
46171
|
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
|
|
46172
|
-
self.
|
|
46172
|
+
self._chatPingFailedCounter = 0;
|
|
46173
46173
|
}
|
|
46174
46174
|
});
|
|
46175
46175
|
} catch (err) {
|
|
@@ -46791,7 +46791,7 @@ ChatProxy.prototype = {
|
|
|
46791
46791
|
this.connection.flush();
|
|
46792
46792
|
this.connection.disconnect();
|
|
46793
46793
|
if (this._checkConnectionPingTimer !== undefined) {
|
|
46794
|
-
Utils.QBLog('[QBChat]', 'Stop ping
|
|
46794
|
+
Utils.QBLog('[QBChat]', 'Stop ping');
|
|
46795
46795
|
clearInterval(this._checkConnectionPingTimer);
|
|
46796
46796
|
this._checkConnectionPingTimer = undefined;
|
|
46797
46797
|
}
|
|
@@ -53555,8 +53555,8 @@ module.exports = StreamManagement;
|
|
|
53555
53555
|
*/
|
|
53556
53556
|
|
|
53557
53557
|
var config = {
|
|
53558
|
-
version: '2.15.
|
|
53559
|
-
buildNumber: '
|
|
53558
|
+
version: '2.15.5',
|
|
53559
|
+
buildNumber: '1152',
|
|
53560
53560
|
creds: {
|
|
53561
53561
|
'appId': 0,
|
|
53562
53562
|
'authKey': '',
|
|
@@ -53577,9 +53577,9 @@ var config = {
|
|
|
53577
53577
|
websocket: 'wss://chat.quickblox.com:5291',
|
|
53578
53578
|
active: 2
|
|
53579
53579
|
},
|
|
53580
|
-
pingTimeout:
|
|
53580
|
+
pingTimeout: 1,
|
|
53581
53581
|
pingLocalhostTimeInterval: 5,
|
|
53582
|
-
chatReconnectionTimeInterval:
|
|
53582
|
+
chatReconnectionTimeInterval: 3,
|
|
53583
53583
|
webrtc: {
|
|
53584
53584
|
answerTimeInterval: 60,
|
|
53585
53585
|
autoReject: true,
|
|
@@ -53622,6 +53622,7 @@ var config = {
|
|
|
53622
53622
|
addISOTime: false,
|
|
53623
53623
|
qbTokenExpirationDate: null,
|
|
53624
53624
|
liveSessionInterval: 120,
|
|
53625
|
+
callBackInterval: 30,
|
|
53625
53626
|
};
|
|
53626
53627
|
|
|
53627
53628
|
config.set = function(options) {
|
|
@@ -53709,7 +53710,7 @@ QuickBlox.prototype = {
|
|
|
53709
53710
|
* @param {Object} configMap - Settings object for QuickBlox SDK.
|
|
53710
53711
|
*/
|
|
53711
53712
|
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
|
|
53712
|
-
|
|
53713
|
+
console.log('current platform: ', Utils.getEnv());
|
|
53713
53714
|
if (typeof accountKey === 'string' && accountKey.length) {
|
|
53714
53715
|
if (configMap && typeof configMap === 'object') {
|
|
53715
53716
|
config.set(configMap);
|