diff options
Diffstat (limited to 'sw-client/src')
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 |
1 files changed, 2 insertions, 4 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 544c870b..70cefbcc 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 @@ -94,10 +94,8 @@ class SevenWondersSession(private val stompSession: KrossbowSession) { suspend fun watchGameStart(gameId: Long): SevenWondersSubscription<Unit> = stompSession.subscribe<Unit>("/topic/lobby/$gameId/started").ignoreHeaders() - suspend fun startGame(gameId: Long) { - val sendDestination = "/app/lobby/startGame" - val receiveDestination = "/topic/lobby/$gameId/started" - stompSession.request<Unit>(sendDestination, receiveDestination) + suspend fun startGame() { + stompSession.send("/app/lobby/startGame") } suspend fun watchPlayerReady(gameId: Long): SevenWondersSubscription<String> = |