From d668cee395201869011646d5615545ad945fb473 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Mon, 27 Dec 2021 23:33:50 +0100 Subject: Upgrade dependencies --- .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sw-client/src/commonMain/kotlin') 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 { -- cgit