From 91d1b6c735440699f32c8476e7016b0f08dd897c Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Thu, 8 Aug 2019 22:57:57 +0200 Subject: WIP sagas --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw-client/src/commonMain/kotlin/org') 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 = stompSession.subscribe("/topic/lobby/$gameId/started").ignoreHeaders() - suspend fun startGame(gameId: Long) { - val sendDestination = "/app/lobby/startGame" - val receiveDestination = "/topic/lobby/$gameId/started" - stompSession.request(sendDestination, receiveDestination) + suspend fun startGame() { + stompSession.send("/app/lobby/startGame") } suspend fun watchPlayerReady(gameId: Long): SevenWondersSubscription = -- cgit