2017-11-13 16:54:16 +01:00
|
|
|
import StreamManager from './stream-manager';
|
|
|
|
import Connection from './messaging-index-stream';
|
|
|
|
|
2017-11-16 15:46:54 +01:00
|
|
|
export default class MessagingIndexStreamManager extends StreamManager<Connection> {
|
2017-11-13 16:54:16 +01:00
|
|
|
private me;
|
|
|
|
|
|
|
|
constructor(me) {
|
|
|
|
super();
|
|
|
|
|
|
|
|
this.me = me;
|
|
|
|
}
|
|
|
|
|
|
|
|
public getConnection() {
|
|
|
|
if (this.connection == null) {
|
|
|
|
this.connection = new Connection(this.me);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.connection;
|
|
|
|
}
|
|
|
|
}
|