misskey/src/web/app/common/scripts/streaming/requests.ts

22 lines
418 B
TypeScript
Raw Normal View History

2018-03-07 09:48:32 +01:00
import Stream from './stream';
import StreamManager from './stream-manager';
/**
* Requests stream connection
*/
export class RequestsStream extends Stream {
constructor() {
super('requests');
}
}
export class RequestsStreamManager extends StreamManager<RequestsStream> {
public getConnection() {
if (this.connection == null) {
this.connection = new RequestsStream();
}
return this.connection;
}
}