summaryrefslogtreecommitdiff
path: root/sw-ui-kt
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2019-12-31 15:23:41 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-01-05 18:19:32 +0100
commitb99e268a14ab21e7790f0fac6e65b7a5f8acd831 (patch)
tree56d15d14f77ffc7e2c539254542e08b223fe6d36 /sw-ui-kt
parentUpgrade gradle wrapper to 6.0.1 (diff)
downloadseven-wonders-b99e268a14ab21e7790f0fac6e65b7a5f8acd831.tar.gz
seven-wonders-b99e268a14ab21e7790f0fac6e65b7a5f8acd831.tar.bz2
seven-wonders-b99e268a14ab21e7790f0fac6e65b7a5f8acd831.zip
Fix server URL in react frontend
Diffstat (limited to 'sw-ui-kt')
-rw-r--r--sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt
index 08769202..d86b8559 100644
--- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt
+++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt
@@ -3,7 +3,6 @@ package org.luxons.sevenwonders.ui.redux.sagas
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import org.luxons.sevenwonders.client.SevenWondersClient
-import org.luxons.sevenwonders.model.api.SEVEN_WONDERS_WS_ENDPOINT
import org.luxons.sevenwonders.ui.redux.RequestChooseName
import org.luxons.sevenwonders.ui.redux.SetCurrentPlayerAction
import org.luxons.sevenwonders.ui.redux.SwState
@@ -14,7 +13,7 @@ typealias SwSagaContext = SagaContext<SwState, RAction, WrapperAction>
suspend fun SwSagaContext.rootSaga() {
val action = next<RequestChooseName>()
- val session = SevenWondersClient().connect(SEVEN_WONDERS_WS_ENDPOINT)
+ val session = SevenWondersClient().connect("ws://localhost:8000")
coroutineScope {
launch { gameBrowserSaga(session) }
bgstack15