diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-12-27 23:33:50 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2022-01-11 03:28:25 +0100 |
commit | d668cee395201869011646d5615545ad945fb473 (patch) | |
tree | d92bbd63f27c64dd4be6443fca037f1ab871758a /sw-client/src/commonMain/kotlin | |
parent | Upgrade Kotlin to 1.6.10 (diff) | |
download | seven-wonders-d668cee395201869011646d5615545ad945fb473.tar.gz seven-wonders-d668cee395201869011646d5615545ad945fb473.tar.bz2 seven-wonders-d668cee395201869011646d5615545ad945fb473.zip |
Upgrade dependencies
Diffstat (limited to 'sw-client/src/commonMain/kotlin')
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 |
1 files changed, 4 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 f11439ef..b0dfdee2 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 @@ -23,12 +23,14 @@ import org.luxons.sevenwonders.model.api.actions.* import org.luxons.sevenwonders.model.api.errors.ErrorDTO import org.luxons.sevenwonders.model.api.events.* import org.luxons.sevenwonders.model.wonders.AssignedWonder +import kotlin.time.Duration +import kotlin.time.Duration.Companion.seconds class SevenWondersClient { private val stompClient = StompClient { - heartBeat = HeartBeat(10000, 10000) - heartBeatTolerance = HeartBeatTolerance(0, 10000) // wide margin to account for heroku cold start + heartBeat = HeartBeat(10.seconds, 10.seconds) + heartBeatTolerance = HeartBeatTolerance(Duration.ZERO, 10.seconds) // wide margin to account for heroku cold start } suspend fun connect(serverUrl: String): SevenWondersSession { |