diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-09 22:06:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-09 22:06:16 +0900 |
| commit | 601d9cdbdfe9f0171a3d1ee002948340d258b00c (patch) | |
| tree | f712880783a7fdedda5d09a62d2d4581742fdaf6 /src/api/stream/othello-game.ts | |
| parent | Add reactor map (diff) | |
| download | sharkey-601d9cdbdfe9f0171a3d1ee002948340d258b00c.tar.gz sharkey-601d9cdbdfe9f0171a3d1ee002948340d258b00c.tar.bz2 sharkey-601d9cdbdfe9f0171a3d1ee002948340d258b00c.zip | |
#1215
Diffstat (limited to 'src/api/stream/othello-game.ts')
| -rw-r--r-- | src/api/stream/othello-game.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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 + }); + } } } |