summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/requests.ts
blob: 5d199a074208f191c85316008b1a927e76945c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
	}
}