diff --git a/README.md b/README.md
index 991eec1c..ccbe852d 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
## Dependencies for browser
```html
-
+
```
## Bower and RequireJS
diff --git a/package.json b/package.json
index e8c4669b..6d80f6bc 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "quickblox",
"description": "QuickBlox JavaScript SDK",
- "version": "2.15.4",
+ "version": "2.15.5",
"homepage": "https://quickblox.com/developers/Javascript",
"main": "src/qbMain.js",
"license": "(Apache-2.0)",
diff --git a/quickblox.js b/quickblox.js
index 95820378..a03835e8 100644
--- a/quickblox.js
+++ b/quickblox.js
@@ -46157,11 +46157,11 @@ ChatProxy.prototype = {
'failed, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter,
' error: ', error);
- self._localPingFaildCounter += 1;
+ self._chatPingFailedCounter += 1;
if (self._chatPingFailedCounter > 6) {
self.isConnected = false;
self._isConnecting = false;
- self._localPingFaildCounter = 0;
+ self._chatPingFailedCounter = 0;
self._establishConnection(params);
}
} else {
@@ -46169,7 +46169,7 @@ ChatProxy.prototype = {
'Chat Ping: ',
'ok, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
- self._localPingFaildCounter = 0;
+ self._chatPingFailedCounter = 0;
}
});
} catch (err) {
@@ -46791,7 +46791,7 @@ ChatProxy.prototype = {
this.connection.flush();
this.connection.disconnect();
if (this._checkConnectionPingTimer !== undefined) {
- Utils.QBLog('[QBChat]', 'Stop ping to localhost.');
+ Utils.QBLog('[QBChat]', 'Stop ping');
clearInterval(this._checkConnectionPingTimer);
this._checkConnectionPingTimer = undefined;
}
@@ -53555,8 +53555,8 @@ module.exports = StreamManagement;
*/
var config = {
- version: '2.15.4',
- buildNumber: '1149',
+ version: '2.15.5',
+ buildNumber: '1152',
creds: {
'appId': 0,
'authKey': '',
@@ -53577,9 +53577,9 @@ var config = {
websocket: 'wss://chat.quickblox.com:5291',
active: 2
},
- pingTimeout: 30,
+ pingTimeout: 1,
pingLocalhostTimeInterval: 5,
- chatReconnectionTimeInterval: 5,
+ chatReconnectionTimeInterval: 3,
webrtc: {
answerTimeInterval: 60,
autoReject: true,
@@ -53622,6 +53622,7 @@ var config = {
addISOTime: false,
qbTokenExpirationDate: null,
liveSessionInterval: 120,
+ callBackInterval: 30,
};
config.set = function(options) {
@@ -53709,7 +53710,7 @@ QuickBlox.prototype = {
* @param {Object} configMap - Settings object for QuickBlox SDK.
*/
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
- Utils.QBLog('current platform:',Utils.getEnv());
+ console.log('current platform: ', Utils.getEnv());
if (typeof accountKey === 'string' && accountKey.length) {
if (configMap && typeof configMap === 'object') {
config.set(configMap);
diff --git a/src/modules/chat/qbChat.js b/src/modules/chat/qbChat.js
index a556c4aa..678103e0 100644
--- a/src/modules/chat/qbChat.js
+++ b/src/modules/chat/qbChat.js
@@ -820,11 +820,11 @@ ChatProxy.prototype = {
'failed, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter,
' error: ', error);
- self._localPingFaildCounter += 1;
+ self._chatPingFailedCounter += 1;
if (self._chatPingFailedCounter > 6) {
self.isConnected = false;
self._isConnecting = false;
- self._localPingFaildCounter = 0;
+ self._chatPingFailedCounter = 0;
self._establishConnection(params);
}
} else {
@@ -832,7 +832,7 @@ ChatProxy.prototype = {
'Chat Ping: ',
'ok, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
- self._localPingFaildCounter = 0;
+ self._chatPingFailedCounter = 0;
}
});
} catch (err) {
@@ -1454,7 +1454,7 @@ ChatProxy.prototype = {
this.connection.flush();
this.connection.disconnect();
if (this._checkConnectionPingTimer !== undefined) {
- Utils.QBLog('[QBChat]', 'Stop ping to localhost.');
+ Utils.QBLog('[QBChat]', 'Stop ping');
clearInterval(this._checkConnectionPingTimer);
this._checkConnectionPingTimer = undefined;
}
diff --git a/src/qbConfig.js b/src/qbConfig.js
index 061358a2..9f3552f4 100644
--- a/src/qbConfig.js
+++ b/src/qbConfig.js
@@ -12,8 +12,8 @@
*/
var config = {
- version: '2.15.4',
- buildNumber: '1150',
+ version: '2.15.5',
+ buildNumber: '1153',
creds: {
'appId': 0,
'authKey': '',
@@ -34,9 +34,9 @@ var config = {
websocket: 'wss://chat.quickblox.com:5291',
active: 2
},
- pingTimeout: 30,
+ pingTimeout: 1,
pingLocalhostTimeInterval: 5,
- chatReconnectionTimeInterval: 5,
+ chatReconnectionTimeInterval: 3,
webrtc: {
answerTimeInterval: 60,
autoReject: true,
@@ -79,6 +79,7 @@ var config = {
addISOTime: false,
qbTokenExpirationDate: null,
liveSessionInterval: 120,
+ callBackInterval: 30,
};
config.set = function(options) {
diff --git a/src/qbMain.js b/src/qbMain.js
index e3e290f9..d5c4e63d 100644
--- a/src/qbMain.js
+++ b/src/qbMain.js
@@ -36,7 +36,7 @@ QuickBlox.prototype = {
* @param {Object} configMap - Settings object for QuickBlox SDK.
*/
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
- Utils.QBLog('current platform:',Utils.getEnv());
+ console.log('current platform: ', Utils.getEnv());
if (typeof accountKey === 'string' && accountKey.length) {
if (configMap && typeof configMap === 'object') {
config.set(configMap);