From fd39e25502c679e1276107944dbf85519474eb4c Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 6 Nov 2022 02:55:42 +0100 Subject: Upgrade Krossbow to 4.4.0 --- gradle/libs.versions.toml | 7 +------ .../kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7d1abde1..59850e7e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,12 +9,7 @@ kotlinx-serialization = "1.3.2" ## ⬆ = "1.3.3" ## ⬆ = "1.4.0" ## ⬆ = "1.4.1" -krossbow = "4.0.2" -## ⬆ = "4.0.3" -## ⬆ = "4.1.0" -## ⬆ = "4.2.0" -## ⬆ = "4.3.0" -## ⬆ = "4.4.0" +krossbow = "4.4.0" logback-classic = "1.2.10" ## ⬆ = "1.2.11" ## ⬆ = "1.3.0" 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 e0c336ce..7b4aa716 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 @@ -16,7 +16,7 @@ import org.hildan.krossbow.stomp.conversions.kxserialization.subscribe import org.hildan.krossbow.stomp.conversions.kxserialization.json.withJsonConversions import org.hildan.krossbow.stomp.sendEmptyMsg import org.hildan.krossbow.websocket.WebSocketClient -import org.hildan.krossbow.websocket.default +import org.hildan.krossbow.websocket.builtin.* import org.luxons.sevenwonders.model.PlayerMove import org.luxons.sevenwonders.model.Settings import org.luxons.sevenwonders.model.api.* @@ -29,7 +29,7 @@ import kotlin.time.Duration.Companion.seconds class SevenWondersClient { - private val stompClient = StompClient(WebSocketClient.default()) { + private val stompClient = StompClient(WebSocketClient.builtIn()) { heartBeat = HeartBeat(10.seconds, 10.seconds) heartBeatTolerance = HeartBeatTolerance(Duration.ZERO, 10.seconds) // wide margin to account for heroku cold start } -- cgit