diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-13 19:16:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-13 19:16:47 +0900 |
| commit | 3aef5e6748777b821e8bcb3ad58410ac52b848e2 (patch) | |
| tree | d0e1c57ecd8de78a774b1b51a5e5732b23f0fb8a /src/client/app/common/scripts | |
| parent | connectedイベントはpongパラメータがtrueの時だけ発行するよ... (diff) | |
| download | sharkey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.tar.gz sharkey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.tar.bz2 sharkey-3aef5e6748777b821e8bcb3ad58410ac52b848e2.zip | |
Better id
Diffstat (limited to 'src/client/app/common/scripts')
| -rw-r--r-- | src/client/app/common/scripts/stream.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/scripts/stream.ts b/src/client/app/common/scripts/stream.ts index 7456c0b074..70180bc5b7 100644 --- a/src/client/app/common/scripts/stream.ts +++ b/src/client/app/common/scripts/stream.ts @@ -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(); } |