mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-23 06:06:58 +00:00
21 lines
406 B
TypeScript
21 lines
406 B
TypeScript
import Stream from './stream';
|
|
import StreamManager from './stream-manager';
|
|
|
|
/**
|
|
* Server stream connection
|
|
*/
|
|
export class ServerStream extends Stream {
|
|
constructor() {
|
|
super('server');
|
|
}
|
|
}
|
|
|
|
export class ServerStreamManager extends StreamManager<ServerStream> {
|
|
public getConnection() {
|
|
if (this.connection == null) {
|
|
this.connection = new ServerStream();
|
|
}
|
|
|
|
return this.connection;
|
|
}
|
|
}
|