diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-22 18:19:46 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-01-22 18:20:05 +0100 |
commit | 7d8c117d620cc09f2726059bdb3bb891826e8599 (patch) | |
tree | 50b9a4ca4c0538186526efecfc610b28aec14a96 /backend | |
parent | Temp fix saga ran on location change #2 (diff) | |
download | seven-wonders-7d8c117d620cc09f2726059bdb3bb891826e8599.tar.gz seven-wonders-7d8c117d620cc09f2726059bdb3bb891826e8599.tar.bz2 seven-wonders-7d8c117d620cc09f2726059bdb3bb891826e8599.zip |
Add notification for updated game to /topics/games
Diffstat (limited to 'backend')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/controllers/LobbyController.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/controllers/LobbyController.java b/backend/src/main/java/org/luxons/sevenwonders/controllers/LobbyController.java index 80fa12e4..cbc69602 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/controllers/LobbyController.java +++ b/backend/src/main/java/org/luxons/sevenwonders/controllers/LobbyController.java @@ -124,6 +124,7 @@ public class LobbyController { private void sendLobbyUpdateToPlayers(Lobby lobby) { template.convertAndSend("/topic/lobby/" + lobby.getId() + "/updated", lobby); + template.convertAndSend("/topic/games", Collections.singletonList(lobby)); } @MessageMapping("/lobby/start") |