Sharkey/src/web/app/common/scripts/streaming/home-stream-manager.ts

21 lines
368 B
TypeScript
Raw Normal View History

2017-11-16 16:46:36 +02:00
import StreamManager from './stream-manager';
2017-11-16 18:24:44 +02:00
import Connection from './home-stream';
2017-11-16 16:46:36 +02:00
2017-11-16 18:24:44 +02:00
export default class HomeStreamManager extends StreamManager<Connection> {
2017-11-16 16:46:36 +02:00
private me;
constructor(me) {
super();
this.me = me;
}
public getConnection() {
if (this.connection == null) {
this.connection = new Connection(this.me);
}
return this.connection;
}
}