summaryrefslogtreecommitdiff
path: root/sw-client/src/commonMain/kotlin
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-03-26 22:25:02 +0100
committerJoffrey Bion <joffrey.bion@booking.com>2020-03-27 10:59:39 +0100
commitb52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268 (patch)
tree9c1eaf1fd1039bdfc6ec2d34526933338056b64d /sw-client/src/commonMain/kotlin
parentRework sagas and router to sub/unsubscribe properly (diff)
downloadseven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.gz
seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.bz2
seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.zip
Fix lobby updates
Diffstat (limited to 'sw-client/src/commonMain/kotlin')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt4
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")
bgstack15