summaryrefslogtreecommitdiff
path: root/src/server/api/stream
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-02 13:33:46 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-02 13:33:46 +0900
commitad38cd2605a7cd857618a5498651d5b10e7b1bfc (patch)
tree7a417a3bb5cfde837afa5bde0de2c1756b053e2b /src/server/api/stream
parentFix built module references (diff)
downloadsharkey-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.ts2
-rw-r--r--src/server/api/stream/othello.ts2
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