diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 19:53:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 19:53:46 +0900 |
| commit | 1439c3245b961de910b753ff2d5069c17e79af4b (patch) | |
| tree | 0ea43246eac335af39e32f2910b3131ce3ec782d /src/web/app/common/scripts/streaming/stream-manager.ts | |
| parent | :v: (diff) | |
| download | sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.gz sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.bz2 sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.zip | |
:v:
Diffstat (limited to 'src/web/app/common/scripts/streaming/stream-manager.ts')
| -rw-r--r-- | src/web/app/common/scripts/streaming/stream-manager.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/app/common/scripts/streaming/stream-manager.ts b/src/web/app/common/scripts/streaming/stream-manager.ts index a4a73c561f..568b8b0372 100644 --- a/src/web/app/common/scripts/streaming/stream-manager.ts +++ b/src/web/app/common/scripts/streaming/stream-manager.ts @@ -31,6 +31,8 @@ export default abstract class StreamManager<T extends Connection> extends EventE this._connection.on('_disconnected_', () => { this.emit('_disconnected_'); }); + + this._connection.user = 'Managed'; } } @@ -77,6 +79,8 @@ export default abstract class StreamManager<T extends Connection> extends EventE this.users.push(userId); + this._connection.user = `Managed (${ this.users.length })`; + return userId; } @@ -87,6 +91,8 @@ export default abstract class StreamManager<T extends Connection> extends EventE public dispose(userId) { this.users = this.users.filter(id => id != userId); + this._connection.user = `Managed (${ this.users.length })`; + // 誰もコネクションの利用者がいなくなったら if (this.users.length == 0) { // また直ぐに再利用される可能性があるので、一定時間待ち、 |