@firebase/database 0.13.2-canary.69e2ee064 → 0.13.2-canary.7cad614ec
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/dist/index.esm2017.js +1 -17
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1 -18
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1 -18
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +0 -17
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +1 -17
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +6 -6
package/dist/index.standalone.js
CHANGED
|
@@ -3303,7 +3303,6 @@ var VisibilityMonitor = /** @class */ (function (_super) {
|
|
|
3303
3303
|
*/
|
|
3304
3304
|
var RECONNECT_MIN_DELAY = 1000;
|
|
3305
3305
|
var RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
|
|
3306
|
-
var GET_CONNECT_TIMEOUT = 3 * 1000;
|
|
3307
3306
|
var RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
|
|
3308
3307
|
var RECONNECT_DELAY_MULTIPLIER = 1.3;
|
|
3309
3308
|
var RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
|
|
@@ -3382,7 +3381,6 @@ var PersistentConnection = /** @class */ (function (_super) {
|
|
|
3382
3381
|
}
|
|
3383
3382
|
};
|
|
3384
3383
|
PersistentConnection.prototype.get = function (query) {
|
|
3385
|
-
var _this = this;
|
|
3386
3384
|
this.initConnection_();
|
|
3387
3385
|
var deferred = new util.Deferred();
|
|
3388
3386
|
var request = {
|
|
@@ -3405,21 +3403,6 @@ var PersistentConnection = /** @class */ (function (_super) {
|
|
|
3405
3403
|
this.outstandingGets_.push(outstandingGet);
|
|
3406
3404
|
this.outstandingGetCount_++;
|
|
3407
3405
|
var index = this.outstandingGets_.length - 1;
|
|
3408
|
-
if (!this.connected_) {
|
|
3409
|
-
setTimeout(function () {
|
|
3410
|
-
var get = _this.outstandingGets_[index];
|
|
3411
|
-
if (get === undefined || outstandingGet !== get) {
|
|
3412
|
-
return;
|
|
3413
|
-
}
|
|
3414
|
-
delete _this.outstandingGets_[index];
|
|
3415
|
-
_this.outstandingGetCount_--;
|
|
3416
|
-
if (_this.outstandingGetCount_ === 0) {
|
|
3417
|
-
_this.outstandingGets_ = [];
|
|
3418
|
-
}
|
|
3419
|
-
_this.log_('get ' + index + ' timed out on connection');
|
|
3420
|
-
deferred.reject(new Error('Client is offline.'));
|
|
3421
|
-
}, GET_CONNECT_TIMEOUT);
|
|
3422
|
-
}
|
|
3423
3406
|
if (this.connected_) {
|
|
3424
3407
|
this.sendGet_(index);
|
|
3425
3408
|
}
|