quickblox 2.15.3 → 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 +9 -13
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +4 -4
- package/src/qbConfig.js +5 -4
- package/src/qbProxy.js +0 -5
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) {
|
|
@@ -54091,7 +54092,6 @@ ServiceProxy.prototype = {
|
|
|
54091
54092
|
qbFetch(qbUrl, qbRequest)
|
|
54092
54093
|
.then(function(response) {
|
|
54093
54094
|
qbResponse = response;
|
|
54094
|
-
console.log('qbProxy fetch then 1');
|
|
54095
54095
|
if (qbRequest.method === 'GET' || qbRequest.method === 'POST'){
|
|
54096
54096
|
var qbTokenExpirationDate = qbResponse.headers.get('qb-token-expirationdate');
|
|
54097
54097
|
var headerHasToken = !(qbTokenExpirationDate === null ||
|
|
@@ -54115,10 +54115,6 @@ ServiceProxy.prototype = {
|
|
|
54115
54115
|
|
|
54116
54116
|
return ' ';
|
|
54117
54117
|
}).then(function(body) {
|
|
54118
|
-
//console.log('HTTP status code: ', qbResponse.headers.status);
|
|
54119
|
-
//console.log('HTTP response: ', qbResponse);
|
|
54120
|
-
console.log('qbProxy fetch then 2');
|
|
54121
|
-
console.log('HTTP body: ', qbResponse);
|
|
54122
54118
|
_requestCallback(null, qbResponse, body);
|
|
54123
54119
|
}, function(error) {
|
|
54124
54120
|
_requestCallback(error);
|