Skip to content

Commit

Permalink
version JS SDK 2.15.5 has created.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-K-Koltunov committed Feb 16, 2023
1 parent 3d0878e commit 42f4a61
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
## Dependencies for browser

```html
<script src="https://unpkg.com/quickblox@2.15.4/quickblox.min.js"></script>
<script src="https://unpkg.com/quickblox@2.15.5/quickblox.min.js"></script>
```

## Bower and RequireJS
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
19 changes: 10 additions & 9 deletions quickblox.js
Original file line number Diff line number Diff line change
Expand Up @@ -46157,19 +46157,19 @@ 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 {
Utils.QBLog('[QBChat]',
'Chat Ping: ',
'ok, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
self._localPingFaildCounter = 0;
self._chatPingFailedCounter = 0;
}
});
} catch (err) {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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': '',
Expand All @@ -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,
Expand Down Expand Up @@ -53622,6 +53622,7 @@ var config = {
addISOTime: false,
qbTokenExpirationDate: null,
liveSessionInterval: 120,
callBackInterval: 30,
};

config.set = function(options) {
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions src/modules/chat/qbChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,19 +820,19 @@ 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 {
Utils.QBLog('[QBChat]',
'Chat Ping: ',
'ok, at ', Utils.getCurrentTime(),
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
self._localPingFaildCounter = 0;
self._chatPingFailedCounter = 0;
}
});
} catch (err) {
Expand Down Expand Up @@ -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;
}
Expand Down
9 changes: 5 additions & 4 deletions src/qbConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

var config = {
version: '2.15.4',
buildNumber: '1150',
version: '2.15.5',
buildNumber: '1153',
creds: {
'appId': 0,
'authKey': '',
Expand All @@ -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,
Expand Down Expand Up @@ -79,6 +79,7 @@ var config = {
addISOTime: false,
qbTokenExpirationDate: null,
liveSessionInterval: 120,
callBackInterval: 30,
};

config.set = function(options) {
Expand Down
2 changes: 1 addition & 1 deletion src/qbMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42f4a61

Please sign in to comment.