@firebase/database 0.13.2 → 0.13.3-20220706191717

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.
@@ -1241,7 +1241,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1241
1241
  WebSocketConnection.healthyTimeout = 30000;
1242
1242
 
1243
1243
  const name = "@firebase/database";
1244
- const version = "0.13.2";
1244
+ const version = "0.13.3-20220706191717";
1245
1245
 
1246
1246
  /**
1247
1247
  * @license
@@ -3184,7 +3184,6 @@ class VisibilityMonitor extends EventEmitter {
3184
3184
  */
3185
3185
  const RECONNECT_MIN_DELAY = 1000;
3186
3186
  const RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
3187
- const GET_CONNECT_TIMEOUT = 3 * 1000;
3188
3187
  const RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
3189
3188
  const RECONNECT_DELAY_MULTIPLIER = 1.3;
3190
3189
  const RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
@@ -3283,21 +3282,6 @@ class PersistentConnection extends ServerActions {
3283
3282
  this.outstandingGets_.push(outstandingGet);
3284
3283
  this.outstandingGetCount_++;
3285
3284
  const index = this.outstandingGets_.length - 1;
3286
- if (!this.connected_) {
3287
- setTimeout(() => {
3288
- const get = this.outstandingGets_[index];
3289
- if (get === undefined || outstandingGet !== get) {
3290
- return;
3291
- }
3292
- delete this.outstandingGets_[index];
3293
- this.outstandingGetCount_--;
3294
- if (this.outstandingGetCount_ === 0) {
3295
- this.outstandingGets_ = [];
3296
- }
3297
- this.log_('get ' + index + ' timed out on connection');
3298
- deferred.reject(new Error('Client is offline.'));
3299
- }, GET_CONNECT_TIMEOUT);
3300
- }
3301
3285
  if (this.connected_) {
3302
3286
  this.sendGet_(index);
3303
3287
  }