diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 14:57:52 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 14:57:52 +0100 |
commit | da54fc14a73faf71599dcd0e51cf8ede0456e09f (patch) | |
tree | 0141a526b5b4fa40cd107aab3c17fe8c535fb5dc | |
parent | Properly start/stop sagas when using browser navigation (diff) | |
download | seven-wonders-da54fc14a73faf71599dcd0e51cf8ede0456e09f.tar.gz seven-wonders-da54fc14a73faf71599dcd0e51cf8ede0456e09f.tar.bz2 seven-wonders-da54fc14a73faf71599dcd0e51cf8ede0456e09f.zip |
Better connection logs
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt index 02ff6e10..4e196afb 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt @@ -23,8 +23,9 @@ suspend fun SwSagaContext.rootSaga() = try { coroutineScope { val action = next<RequestChooseName>() val serverUrl = sevenWondersWebSocketUrl() + console.info("Connecting to Seven Wonders web socket API...") val session = SevenWondersClient().connect(serverUrl) - console.info("Connected to Seven Wonders web socket API") + console.info("Connected!") launch(start = CoroutineStart.UNDISPATCHED) { serverErrorSaga(session) |