@firebase/database 1.0.11-canary.01f36ea41 → 1.0.11-canary.105d248bd
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.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +1 -1
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +2 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/index.node.cjs.js
CHANGED
|
@@ -1259,7 +1259,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
|
|
|
1259
1259
|
WebSocketConnection.healthyTimeout = 30000;
|
|
1260
1260
|
|
|
1261
1261
|
const name = "@firebase/database";
|
|
1262
|
-
const version = "1.0.11-canary.
|
|
1262
|
+
const version = "1.0.11-canary.105d248bd";
|
|
1263
1263
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
* @license
|
|
@@ -3753,7 +3753,7 @@ class PersistentConnection extends ServerActions {
|
|
|
3753
3753
|
}
|
|
3754
3754
|
this.lastConnectionEstablishedTime_ = null;
|
|
3755
3755
|
}
|
|
3756
|
-
const timeSinceLastConnectAttempt =
|
|
3756
|
+
const timeSinceLastConnectAttempt = new Date().getTime() - this.lastConnectionAttemptTime_;
|
|
3757
3757
|
let reconnectDelay = Math.max(0, this.reconnectDelay_ - timeSinceLastConnectAttempt);
|
|
3758
3758
|
reconnectDelay = Math.random() * reconnectDelay;
|
|
3759
3759
|
this.log_('Trying to reconnect in ' + reconnectDelay + 'ms');
|