summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 14:57:52 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 14:57:52 +0100
commitda54fc14a73faf71599dcd0e51cf8ede0456e09f (patch)
tree0141a526b5b4fa40cd107aab3c17fe8c535fb5dc
parentProperly start/stop sagas when using browser navigation (diff)
downloadseven-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.kt3
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)
bgstack15