diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 19:53:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-15 19:53:46 +0900 |
| commit | 1439c3245b961de910b753ff2d5069c17e79af4b (patch) | |
| tree | 0ea43246eac335af39e32f2910b3131ce3ec782d /src/web/app/common/scripts/streaming/requests.ts | |
| parent | :v: (diff) | |
| download | sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.gz sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.bz2 sharkey-1439c3245b961de910b753ff2d5069c17e79af4b.zip | |
:v:
Diffstat (limited to 'src/web/app/common/scripts/streaming/requests.ts')
| -rw-r--r-- | src/web/app/common/scripts/streaming/requests.ts | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/web/app/common/scripts/streaming/requests.ts b/src/web/app/common/scripts/streaming/requests.ts index 5d199a0742..5bec30143f 100644 --- a/src/web/app/common/scripts/streaming/requests.ts +++ b/src/web/app/common/scripts/streaming/requests.ts @@ -1,19 +1,28 @@ import Stream from './stream'; import StreamManager from './stream-manager'; +import MiOS from '../../mios'; /** * Requests stream connection */ export class RequestsStream extends Stream { - constructor() { - super('requests'); + constructor(os: MiOS) { + super(os, 'requests'); } } export class RequestsStreamManager extends StreamManager<RequestsStream> { + private os: MiOS; + + constructor(os: MiOS) { + super(); + + this.os = os; + } + public getConnection() { if (this.connection == null) { - this.connection = new RequestsStream(); + this.connection = new RequestsStream(this.os); } return this.connection; |