From b99e268a14ab21e7790f0fac6e65b7a5f8acd831 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 31 Dec 2019 15:23:41 +0100 Subject: Fix server URL in react frontend --- .../src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw-ui-kt') 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 suspend fun SwSagaContext.rootSaga() { val action = next() - val session = SevenWondersClient().connect(SEVEN_WONDERS_WS_ENDPOINT) + val session = SevenWondersClient().connect("ws://localhost:8000") coroutineScope { launch { gameBrowserSaga(session) } -- cgit