summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/stream-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts/streaming/stream-manager.ts')
-rw-r--r--src/web/app/common/scripts/streaming/stream-manager.ts6
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) {
// また直ぐに再利用される可能性があるので、一定時間待ち、