@firebase/database 1.0.11-canary.d1c6e311d → 1.0.11-canary.d8aabaf9e
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.esm2017.js
CHANGED
|
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
|
|
|
4
4
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/database";
|
|
7
|
-
const version = "1.0.11-canary.
|
|
7
|
+
const version = "1.0.11-canary.d8aabaf9e";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -3741,7 +3741,7 @@ class PersistentConnection extends ServerActions {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
this.lastConnectionEstablishedTime_ = null;
|
|
3743
3743
|
}
|
|
3744
|
-
const timeSinceLastConnectAttempt =
|
|
3744
|
+
const timeSinceLastConnectAttempt = new Date().getTime() - this.lastConnectionAttemptTime_;
|
|
3745
3745
|
let reconnectDelay = Math.max(0, this.reconnectDelay_ - timeSinceLastConnectAttempt);
|
|
3746
3746
|
reconnectDelay = Math.random() * reconnectDelay;
|
|
3747
3747
|
this.log_('Trying to reconnect in ' + reconnectDelay + 'ms');
|