diff options
| author | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-04-02 13:33:46 +0900 |
|---|---|---|
| committer | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-04-02 13:33:46 +0900 |
| commit | ad38cd2605a7cd857618a5498651d5b10e7b1bfc (patch) | |
| tree | 7a417a3bb5cfde837afa5bde0de2c1756b053e2b /src/server/api/stream | |
| parent | Fix built module references (diff) | |
| download | sharkey-ad38cd2605a7cd857618a5498651d5b10e7b1bfc.tar.gz sharkey-ad38cd2605a7cd857618a5498651d5b10e7b1bfc.tar.bz2 sharkey-ad38cd2605a7cd857618a5498651d5b10e7b1bfc.zip | |
Introduce publishers directory
Diffstat (limited to 'src/server/api/stream')
| -rw-r--r-- | src/server/api/stream/othello-game.ts | 2 | ||||
| -rw-r--r-- | src/server/api/stream/othello.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/stream/othello-game.ts b/src/server/api/stream/othello-game.ts index 6eb610331c..841e542610 100644 --- a/src/server/api/stream/othello-game.ts +++ b/src/server/api/stream/othello-game.ts @@ -2,7 +2,7 @@ import * as websocket from 'websocket'; import * as redis from 'redis'; import * as CRC32 from 'crc-32'; import OthelloGame, { pack } from '../../../models/othello-game'; -import { publishOthelloGameStream } from '../../../event'; +import { publishOthelloGameStream } from '../../../publishers/stream'; import Othello from '../../../othello/core'; import * as maps from '../../../othello/maps'; import { ParsedUrlQuery } from 'querystring'; diff --git a/src/server/api/stream/othello.ts b/src/server/api/stream/othello.ts index 4c292056da..fa62b05836 100644 --- a/src/server/api/stream/othello.ts +++ b/src/server/api/stream/othello.ts @@ -2,7 +2,7 @@ import * as mongo from 'mongodb'; import * as websocket from 'websocket'; import * as redis from 'redis'; import Matching, { pack } from '../../../models/othello-matching'; -import publishUserStream from '../../../event'; +import publishUserStream from '../../../publishers/stream'; export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user: any): void { // Subscribe othello stream |