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/othello.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/othello.ts')
| -rw-r--r-- | src/web/app/common/scripts/streaming/othello.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/web/app/common/scripts/streaming/othello.ts b/src/web/app/common/scripts/streaming/othello.ts index febc5d498a..f5d47431cd 100644 --- a/src/web/app/common/scripts/streaming/othello.ts +++ b/src/web/app/common/scripts/streaming/othello.ts @@ -1,9 +1,10 @@ import StreamManager from './stream-manager'; import Stream from './stream'; +import MiOS from '../../mios'; export class OthelloStream extends Stream { - constructor(me) { - super('othello', { + constructor(os: MiOS, me) { + super(os, 'othello', { i: me.token }); } @@ -11,16 +12,18 @@ export class OthelloStream extends Stream { export class OthelloStreamManager extends StreamManager<OthelloStream> { private me; + private os: MiOS; - constructor(me) { + constructor(os: MiOS, me) { super(); this.me = me; + this.os = os; } public getConnection() { if (this.connection == null) { - this.connection = new OthelloStream(this.me); + this.connection = new OthelloStream(this.os, this.me); } return this.connection; |