@firebase/database 0.13.2-canary.69e2ee064 → 0.13.2-canary.ad773fa45

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.
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteA
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "0.13.2-canary.69e2ee064";
7
+ const version = "0.13.2-canary.ad773fa45";
8
8
 
9
9
  /**
10
10
  * @license
@@ -3180,7 +3180,6 @@ class VisibilityMonitor extends EventEmitter {
3180
3180
  */
3181
3181
  const RECONNECT_MIN_DELAY = 1000;
3182
3182
  const RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
3183
- const GET_CONNECT_TIMEOUT = 3 * 1000;
3184
3183
  const RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
3185
3184
  const RECONNECT_DELAY_MULTIPLIER = 1.3;
3186
3185
  const RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
@@ -3279,21 +3278,6 @@ class PersistentConnection extends ServerActions {
3279
3278
  this.outstandingGets_.push(outstandingGet);
3280
3279
  this.outstandingGetCount_++;
3281
3280
  const index = this.outstandingGets_.length - 1;
3282
- if (!this.connected_) {
3283
- setTimeout(() => {
3284
- const get = this.outstandingGets_[index];
3285
- if (get === undefined || outstandingGet !== get) {
3286
- return;
3287
- }
3288
- delete this.outstandingGets_[index];
3289
- this.outstandingGetCount_--;
3290
- if (this.outstandingGetCount_ === 0) {
3291
- this.outstandingGets_ = [];
3292
- }
3293
- this.log_('get ' + index + ' timed out on connection');
3294
- deferred.reject(new Error('Client is offline.'));
3295
- }, GET_CONNECT_TIMEOUT);
3296
- }
3297
3281
  if (this.connected_) {
3298
3282
  this.sendGet_(index);
3299
3283
  }