Add messaging widget
This commit is contained in:
parent
0a994e5b98
commit
ab2293aa4c
14 changed files with 186 additions and 7 deletions
20
src/web/app/common/scripts/messaging-index-stream-manager.ts
Normal file
20
src/web/app/common/scripts/messaging-index-stream-manager.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import StreamManager from './stream-manager';
|
||||
import Connection from './messaging-index-stream';
|
||||
|
||||
export default class ServerStreamManager extends StreamManager<Connection> {
|
||||
private me;
|
||||
|
||||
constructor(me) {
|
||||
super();
|
||||
|
||||
this.me = me;
|
||||
}
|
||||
|
||||
public getConnection() {
|
||||
if (this.connection == null) {
|
||||
this.connection = new Connection(this.me);
|
||||
}
|
||||
|
||||
return this.connection;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue