diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-24 14:07:18 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-24 14:07:18 +0200 |
commit | e45a95ead2ce5f78ef99b223a44991a112bf1432 (patch) | |
tree | 314834c61ef8b54d317aa9b441ddfab535c8299a /sw-client | |
parent | Keep card visible when used to upgrade wonder (diff) | |
download | seven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.tar.gz seven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.tar.bz2 seven-wonders-e45a95ead2ce5f78ef99b223a44991a112bf1432.zip |
Attempt at fixing mixed content ws call
Diffstat (limited to 'sw-client')
-rw-r--r-- | sw-client/src/commonMain/kotlin/org/luxons/sevenwonders/client/SevenWondersClient.kt | 4 |
1 files changed, 2 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 4185a6e4..4e3cf4b2 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 @@ -30,8 +30,8 @@ class SevenWondersClient { private val stompClient = StompClient() - suspend fun connect(serverHost: String): SevenWondersSession { - val session = stompClient.connect("ws://$serverHost$SEVEN_WONDERS_WS_ENDPOINT").withJsonConversions() + suspend fun connect(serverUrl: String): SevenWondersSession { + val session = stompClient.connect("$serverUrl$SEVEN_WONDERS_WS_ENDPOINT").withJsonConversions() return SevenWondersSession(session) } } |