Refactoring
This commit is contained in:
		@@ -1,10 +1,10 @@
 | 
			
		||||
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 '../../../stream';
 | 
			
		||||
import Reversi from '../../../games/reversi/core';
 | 
			
		||||
import * as maps from '../../../games/reversi/maps';
 | 
			
		||||
import * as CRC32 from 'crc-32/types';
 | 
			
		||||
import ReversiGame, { pack } from '../../../../models/games/reversi/game';
 | 
			
		||||
import { publishReversiGameStream } from '../../../../stream';
 | 
			
		||||
import Reversi from '../../../../games/reversi/core';
 | 
			
		||||
import * as maps from '../../../../games/reversi/maps';
 | 
			
		||||
import { ParsedUrlQuery } from 'querystring';
 | 
			
		||||
 | 
			
		||||
export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user?: any): void {
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
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 '../../../stream';
 | 
			
		||||
import Matching, { pack } from '../../../../models/games/reversi/matching';
 | 
			
		||||
import publishUserStream from '../../../../stream';
 | 
			
		||||
 | 
			
		||||
export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user: any): void {
 | 
			
		||||
	// Subscribe reversi stream
 | 
			
		||||
		Reference in New Issue
	
	Block a user