Better id
This commit is contained in:
parent
2b536a7443
commit
3aef5e6748
5 changed files with 7 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue