summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/server.ts
blob: b12198d2fddfa938e12cdd087eea51bfa93f04e6 (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';

/**
 * 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;
	}
}