summaryrefslogtreecommitdiff
path: root/sw-client
diff options
context:
space:
mode:
Diffstat (limited to 'sw-client')
-rw-r--r--sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt6
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 {
bgstack15