Introduce publishers directory
This commit is contained in:
parent
0a48ef59cd
commit
ad38cd2605
27 changed files with 48 additions and 52 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue