2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-06-27 07:13:12 +00:00
This commit is contained in:
2023-08-31 15:39:57 +03:00
parent c1fb6b1ada
commit 6ceb290a96
3 changed files with 36 additions and 25 deletions

View File

@ -110,6 +110,7 @@ export default class DistributedConnection extends IStore {
this._register("ready");
this._register("error");
this._register("close");
this._register("resumed");
if (server != null)
{
@ -907,8 +908,10 @@ export default class DistributedConnection extends IStore {
await this.fetch(id, null);
console.log("Restored " + id);
// set active
r._p.suspended = false;
console.log("Restored " + id);
}
}
catch (ex)
@ -932,6 +935,8 @@ export default class DistributedConnection extends IStore {
return false;
}
this._emit("resumed", this);
return true;
}