diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-26 22:25:02 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-27 10:59:39 +0100 |
commit | b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268 (patch) | |
tree | 9c1eaf1fd1039bdfc6ec2d34526933338056b64d /sw-client/src/commonMain/kotlin/org/luxons | |
parent | Rework sagas and router to sub/unsubscribe properly (diff) | |
download | seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.gz seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.bz2 seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.zip |
Fix lobby updates
Diffstat (limited to 'sw-client/src/commonMain/kotlin/org/luxons')
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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<LobbyDTO> = - stompSession.subscribe("/topic/lobby/$gameId/updated", LobbyDTO.serializer()) + suspend fun watchLobbyUpdates(): StompSubscription<LobbyDTO> = + stompSession.subscribe("/user/queue/lobby/updated", LobbyDTO.serializer()) suspend fun awaitGameStart(gameId: Long) { val gameStartSubscription = stompSession.subscribeEmptyMsg("/topic/lobby/$gameId/started") |