summaryrefslogtreecommitdiff
path: root/sw-client/src/commonMain/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2019-08-08 22:57:57 +0200
committerjoffrey-bion <joffrey.bion@gmail.com>2019-10-22 22:17:05 +0200
commit91d1b6c735440699f32c8476e7016b0f08dd897c (patch)
tree4282632de23ce54f30843662ca1cf3cf1ad57f4e /sw-client/src/commonMain/kotlin/org/luxons
parentUpgrade Kotlin & Kotlin Wrappers version (diff)
downloadseven-wonders-91d1b6c735440699f32c8476e7016b0f08dd897c.tar.gz
seven-wonders-91d1b6c735440699f32c8476e7016b0f08dd897c.tar.bz2
seven-wonders-91d1b6c735440699f32c8476e7016b0f08dd897c.zip
WIP sagas
Diffstat (limited to 'sw-client/src/commonMain/kotlin/org/luxons')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt6
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> =
bgstack15