From b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Thu, 26 Mar 2020 22:25:02 +0100 Subject: Fix lobby updates --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-client') diff --git a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt index c4293c2a..c0d59ac0 100644 --- a/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt +++ b/sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt @@ -85,8 +85,8 @@ class SevenWondersSession(private val stompSession: StompSessionWithKxSerializat stompSession.convertAndSend("/app/lobby/reorderPlayers", UpdateSettingsAction(settings), UpdateSettingsAction.serializer()) } - suspend fun watchLobbyUpdates(gameId: Long): StompSubscription = - stompSession.subscribe("/topic/lobby/$gameId/updated", LobbyDTO.serializer()) + suspend fun watchLobbyUpdates(): StompSubscription = + stompSession.subscribe("/user/queue/lobby/updated", LobbyDTO.serializer()) suspend fun awaitGameStart(gameId: Long) { val gameStartSubscription = stompSession.subscribeEmptyMsg("/topic/lobby/$gameId/started") -- cgit