Refactorng

This commit is contained in:
syuilo
2018-07-07 19:19:00 +09:00
parent 865fd25af1
commit aa4ef6745a
132 changed files with 180 additions and 212 deletions

View File

@ -2,7 +2,7 @@ import * as websocket from 'websocket';
import * as redis from 'redis';
import * as CRC32 from 'crc-32';
import ReversiGame, { pack } from '../../../models/games/reversi/game';
import { publishReversiGameStream } from '../../../publishers/stream';
import { publishReversiGameStream } from '../../../stream';
import Reversi from '../../../games/reversi/core';
import * as maps from '../../../games/reversi/maps';
import { ParsedUrlQuery } from 'querystring';

View File

@ -2,7 +2,7 @@ import * as mongo from 'mongodb';
import * as websocket from 'websocket';
import * as redis from 'redis';
import Matching, { pack } from '../../../models/games/reversi/matching';
import publishUserStream from '../../../publishers/stream';
import publishUserStream from '../../../stream';
export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user: any): void {
// Subscribe reversi stream