From 7d8c117d620cc09f2726059bdb3bb891826e8599 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 22 Jan 2017 18:19:46 +0100 Subject: Add notification for updated game to /topics/games --- .../main/java/org/luxons/sevenwonders/controllers/LobbyController.java | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/src/main/java/org/luxons') 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") -- cgit