summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts/streaming/server.ts')
-rw-r--r--src/web/app/common/scripts/streaming/server.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/web/app/common/scripts/streaming/server.ts b/src/web/app/common/scripts/streaming/server.ts
index b12198d2fd..3d35ef4d9d 100644
--- a/src/web/app/common/scripts/streaming/server.ts
+++ b/src/web/app/common/scripts/streaming/server.ts
@@ -1,19 +1,28 @@
import Stream from './stream';
import StreamManager from './stream-manager';
+import MiOS from '../../mios';
/**
* Server stream connection
*/
export class ServerStream extends Stream {
- constructor() {
- super('server');
+ constructor(os: MiOS) {
+ super(os, 'server');
}
}
export class ServerStreamManager extends StreamManager<ServerStream> {
+ private os: MiOS;
+
+ constructor(os: MiOS) {
+ super();
+
+ this.os = os;
+ }
+
public getConnection() {
if (this.connection == null) {
- this.connection = new ServerStream();
+ this.connection = new ServerStream(this.os);
}
return this.connection;