diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-09 22:30:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-09 22:30:02 +0900 |
| commit | 79b20a37298420b015fd402281efcff8ee7735b5 (patch) | |
| tree | 47bb07739a0ee6694c079857812e1747c555f51c /src/api/stream | |
| parent | v4058 (diff) | |
| download | sharkey-79b20a37298420b015fd402281efcff8ee7735b5.tar.gz sharkey-79b20a37298420b015fd402281efcff8ee7735b5.tar.bz2 sharkey-79b20a37298420b015fd402281efcff8ee7735b5.zip | |
setイベントに次どっちのターンかの情報を含めた
Diffstat (limited to 'src/api/stream')
| -rw-r--r-- | src/api/stream/othello-game.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/stream/othello-game.ts b/src/api/stream/othello-game.ts index 53cda88b58..5c826e5b41 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', { |