From 601d9cdbdfe9f0171a3d1ee002948340d258b00c Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 9 Mar 2018 22:06:16 +0900 Subject: #1215 --- src/api/stream/othello-game.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/api/stream') diff --git a/src/api/stream/othello-game.ts b/src/api/stream/othello-game.ts index 2af1bd97a0..53cda88b58 100644 --- a/src/api/stream/othello-game.ts +++ b/src/api/stream/othello-game.ts @@ -171,5 +171,11 @@ export default function(request: websocket.request, connection: websocket.connec }); publishOthelloGameStream(gameId, 'set', log); + + if (o.isEnded) { + publishOthelloGameStream(gameId, 'ended', { + winner_id: winner + }); + } } } -- cgit v1.2.3-freya