2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-04 05:58:22 +00:00
This commit is contained in:
2022-02-17 18:06:02 +03:00
parent 8eb67ae4fb
commit 214785a893
27 changed files with 1645 additions and 396 deletions

View File

@@ -65,6 +65,7 @@ export default class DistributedServer extends IResource
this.connections = [];
}
//@TODO: con.off("close", ...)
add() {
let self = this;
let con = new DistributedConnection(this);
@@ -75,7 +76,7 @@ export default class DistributedServer extends IResource
remove(connection){
let i = this.connections.indexOf(connection);
if (i > -1)
if (i > -1)
this.connections.splice(i, 1);
}
}