@kokimoki/app 0.6.4 → 0.6.5
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/kokimoki-client.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/kokimoki-client.js
CHANGED
|
@@ -97,7 +97,11 @@ export class KokimokiClient extends EventEmitter {
|
|
|
97
97
|
checkConnectionState() {
|
|
98
98
|
const pongReceived = Date.now() - this._lastPongAt < 6000;
|
|
99
99
|
if (!pongReceived && this._synced) {
|
|
100
|
-
|
|
100
|
+
// Reset connections to providers
|
|
101
|
+
this._providers.forEach(async (provider) => {
|
|
102
|
+
provider.disconnect();
|
|
103
|
+
await provider.connect();
|
|
104
|
+
});
|
|
101
105
|
}
|
|
102
106
|
const synced = pongReceived &&
|
|
103
107
|
!Array.from(this._providers.values()).some((provider) => provider.status !== "connected" || !provider.synced);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const KOKIMOKI_APP_VERSION = "0.6.
|
|
1
|
+
export declare const KOKIMOKI_APP_VERSION = "0.6.5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const KOKIMOKI_APP_VERSION = "0.6.
|
|
1
|
+
export const KOKIMOKI_APP_VERSION = "0.6.5";
|