Better id

This commit is contained in:
syuilo
2018-10-13 19:16:47 +09:00
parent 2b536a7443
commit 3aef5e6748
5 changed files with 7 additions and 7 deletions

View File

@ -156,7 +156,7 @@ class Pool {
this.channel = channel;
this.stream = stream;
this.id = Math.random().toString();
this.id = Math.random().toString().substr(2, 8);
this.stream.on('_disconnected_', this.onStreamDisconnected);
}
@ -275,7 +275,7 @@ class NonSharedConnection extends Connection {
super(stream, channel);
this.params = params;
this.id = Math.random().toString();
this.id = Math.random().toString().substr(2, 8);
this.connect();
}