summaryrefslogtreecommitdiff
path: root/src/api/stream
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/stream')
-rw-r--r--src/api/stream/othello-game.ts6
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
+ });
+ }
}
}