From 79b20a37298420b015fd402281efcff8ee7735b5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 9 Mar 2018 22:30:02 +0900 Subject: [PATCH] =?UTF-8?q?set=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=AB=E6=AC=A1=E3=81=A9=E3=81=A3=E3=81=A1=E3=81=AE=E3=82=BF?= =?UTF-8?q?=E3=83=BC=E3=83=B3=E3=81=8B=E3=81=AE=E6=83=85=E5=A0=B1=E3=82=92?= =?UTF-8?q?=E5=90=AB=E3=82=81=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/stream/othello-game.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/stream/othello-game.ts b/src/api/stream/othello-game.ts index 53cda88b5..5c826e5b4 100644 --- a/src/api/stream/othello-game.ts +++ b/src/api/stream/othello-game.ts @@ -170,7 +170,9 @@ export default function(request: websocket.request, connection: websocket.connec } }); - publishOthelloGameStream(gameId, 'set', log); + publishOthelloGameStream(gameId, 'set', Object.assign(log, { + next: o.turn + })); if (o.isEnded) { publishOthelloGameStream(gameId, 'ended', {