From 3aef5e6748777b821e8bcb3ad58410ac52b848e2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Oct 2018 19:16:47 +0900 Subject: Better id --- src/client/app/common/scripts/stream.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/app/common/scripts') 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(); } -- cgit v1.2.3-freya