This commit is contained in:
syuilo
2018-03-14 04:37:20 +09:00
parent 85df5ce3f7
commit 0fb52ea7eb
4 changed files with 8 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import { publishOthelloGameStream } from '../event';
import Othello from '../../common/othello/core';
import * as maps from '../../common/othello/maps';
export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user: any): void {
export default function(request: websocket.request, connection: websocket.connection, subscriber: redis.RedisClient, user?: any): void {
const gameId = request.resourceURL.query.game;
// Subscribe game stream