mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 09:13:09 +02:00
21 lines
370 B
TypeScript
21 lines
370 B
TypeScript
|
import StreamManager from './stream-manager';
|
||
|
import Connection from './drive-stream';
|
||
|
|
||
|
export default class DriveStreamManager 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;
|
||
|
}
|
||
|
}
|