Skip to content

Commit 42f4a61

Browse files
version JS SDK 2.15.5 has created.
1 parent 3d0878e commit 42f4a61

File tree

6 files changed

+22
-20
lines changed

6 files changed

+22
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://unpkg.com/[email protected].4/quickblox.min.js"></script>
19+
<script src="https://unpkg.com/[email protected].5/quickblox.min.js"></script>
2020
```
2121

2222
## Bower and RequireJS

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.15.4",
4+
"version": "2.15.5",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "src/qbMain.js",
77
"license": "(Apache-2.0)",

quickblox.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46157,19 +46157,19 @@ ChatProxy.prototype = {
4615746157
'failed, at ', Utils.getCurrentTime(),
4615846158
'_chatPingFailedCounter: ', self._chatPingFailedCounter,
4615946159
' error: ', error);
46160-
self._localPingFaildCounter += 1;
46160+
self._chatPingFailedCounter += 1;
4616146161
if (self._chatPingFailedCounter > 6) {
4616246162
self.isConnected = false;
4616346163
self._isConnecting = false;
46164-
self._localPingFaildCounter = 0;
46164+
self._chatPingFailedCounter = 0;
4616546165
self._establishConnection(params);
4616646166
}
4616746167
} else {
4616846168
Utils.QBLog('[QBChat]',
4616946169
'Chat Ping: ',
4617046170
'ok, at ', Utils.getCurrentTime(),
4617146171
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
46172-
self._localPingFaildCounter = 0;
46172+
self._chatPingFailedCounter = 0;
4617346173
}
4617446174
});
4617546175
} catch (err) {
@@ -46791,7 +46791,7 @@ ChatProxy.prototype = {
4679146791
this.connection.flush();
4679246792
this.connection.disconnect();
4679346793
if (this._checkConnectionPingTimer !== undefined) {
46794-
Utils.QBLog('[QBChat]', 'Stop ping to localhost.');
46794+
Utils.QBLog('[QBChat]', 'Stop ping');
4679546795
clearInterval(this._checkConnectionPingTimer);
4679646796
this._checkConnectionPingTimer = undefined;
4679746797
}
@@ -53555,8 +53555,8 @@ module.exports = StreamManagement;
5355553555
*/
5355653556

5355753557
var config = {
53558-
version: '2.15.4',
53559-
buildNumber: '1149',
53558+
version: '2.15.5',
53559+
buildNumber: '1152',
5356053560
creds: {
5356153561
'appId': 0,
5356253562
'authKey': '',
@@ -53577,9 +53577,9 @@ var config = {
5357753577
websocket: 'wss://chat.quickblox.com:5291',
5357853578
active: 2
5357953579
},
53580-
pingTimeout: 30,
53580+
pingTimeout: 1,
5358153581
pingLocalhostTimeInterval: 5,
53582-
chatReconnectionTimeInterval: 5,
53582+
chatReconnectionTimeInterval: 3,
5358353583
webrtc: {
5358453584
answerTimeInterval: 60,
5358553585
autoReject: true,
@@ -53622,6 +53622,7 @@ var config = {
5362253622
addISOTime: false,
5362353623
qbTokenExpirationDate: null,
5362453624
liveSessionInterval: 120,
53625+
callBackInterval: 30,
5362553626
};
5362653627

5362753628
config.set = function(options) {
@@ -53709,7 +53710,7 @@ QuickBlox.prototype = {
5370953710
* @param {Object} configMap - Settings object for QuickBlox SDK.
5371053711
*/
5371153712
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
53712-
Utils.QBLog('current platform:',Utils.getEnv());
53713+
console.log('current platform: ', Utils.getEnv());
5371353714
if (typeof accountKey === 'string' && accountKey.length) {
5371453715
if (configMap && typeof configMap === 'object') {
5371553716
config.set(configMap);

src/modules/chat/qbChat.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,19 +820,19 @@ ChatProxy.prototype = {
820820
'failed, at ', Utils.getCurrentTime(),
821821
'_chatPingFailedCounter: ', self._chatPingFailedCounter,
822822
' error: ', error);
823-
self._localPingFaildCounter += 1;
823+
self._chatPingFailedCounter += 1;
824824
if (self._chatPingFailedCounter > 6) {
825825
self.isConnected = false;
826826
self._isConnecting = false;
827-
self._localPingFaildCounter = 0;
827+
self._chatPingFailedCounter = 0;
828828
self._establishConnection(params);
829829
}
830830
} else {
831831
Utils.QBLog('[QBChat]',
832832
'Chat Ping: ',
833833
'ok, at ', Utils.getCurrentTime(),
834834
'_chatPingFailedCounter: ', self._chatPingFailedCounter);
835-
self._localPingFaildCounter = 0;
835+
self._chatPingFailedCounter = 0;
836836
}
837837
});
838838
} catch (err) {
@@ -1454,7 +1454,7 @@ ChatProxy.prototype = {
14541454
this.connection.flush();
14551455
this.connection.disconnect();
14561456
if (this._checkConnectionPingTimer !== undefined) {
1457-
Utils.QBLog('[QBChat]', 'Stop ping to localhost.');
1457+
Utils.QBLog('[QBChat]', 'Stop ping');
14581458
clearInterval(this._checkConnectionPingTimer);
14591459
this._checkConnectionPingTimer = undefined;
14601460
}

src/qbConfig.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313

1414
var config = {
15-
version: '2.15.4',
16-
buildNumber: '1150',
15+
version: '2.15.5',
16+
buildNumber: '1153',
1717
creds: {
1818
'appId': 0,
1919
'authKey': '',
@@ -34,9 +34,9 @@ var config = {
3434
websocket: 'wss://chat.quickblox.com:5291',
3535
active: 2
3636
},
37-
pingTimeout: 30,
37+
pingTimeout: 1,
3838
pingLocalhostTimeInterval: 5,
39-
chatReconnectionTimeInterval: 5,
39+
chatReconnectionTimeInterval: 3,
4040
webrtc: {
4141
answerTimeInterval: 60,
4242
autoReject: true,
@@ -79,6 +79,7 @@ var config = {
7979
addISOTime: false,
8080
qbTokenExpirationDate: null,
8181
liveSessionInterval: 120,
82+
callBackInterval: 30,
8283
};
8384

8485
config.set = function(options) {

src/qbMain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ QuickBlox.prototype = {
3636
* @param {Object} configMap - Settings object for QuickBlox SDK.
3737
*/
3838
init: function(appIdOrToken, authKeyOrAppId, authSecret, accountKey, configMap) {
39-
Utils.QBLog('current platform:',Utils.getEnv());
39+
console.log('current platform: ', Utils.getEnv());
4040
if (typeof accountKey === 'string' && accountKey.length) {
4141
if (configMap && typeof configMap === 'object') {
4242
config.set(configMap);

0 commit comments

Comments
 (0)