summaryrefslogtreecommitdiff
path: root/frontend/src/sagas.js
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@amadeus.com>2017-07-24 19:40:23 +0200
committerJoffrey Bion <joffrey.bion@amadeus.com>2017-07-24 19:40:23 +0200
commit43685fd7ff83ed03342c273851e69228adde8dc7 (patch)
tree46062865800317bcaf62eb0bfd6d681dc17ddd41 /frontend/src/sagas.js
parentIsolate Seven Wonders API from sagas (diff)
downloadseven-wonders-43685fd7ff83ed03342c273851e69228adde8dc7.tar.gz
seven-wonders-43685fd7ff83ed03342c273851e69228adde8dc7.tar.bz2
seven-wonders-43685fd7ff83ed03342c273851e69228adde8dc7.zip
Decouple Seven Wonders API from saga channels API
Diffstat (limited to 'frontend/src/sagas.js')
-rw-r--r--frontend/src/sagas.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js
index 2b690a02..b7fc4122 100644
--- a/frontend/src/sagas.js
+++ b/frontend/src/sagas.js
@@ -6,12 +6,12 @@ import { makeSagaRoutes } from './routes';
import errorHandlingSaga from './sagas/errors';
import type { History } from 'react-router';
-import { SevenWondersSession, createSession } from './api/sevenWondersApi';
+import { SevenWondersSession, connectToGame } from './api/sevenWondersApi';
export default function* rootSaga(history: History): * {
let sevenWondersSession: SevenWondersSession | void;
try {
- sevenWondersSession = yield call(createSession);
+ sevenWondersSession = yield call(connectToGame);
} catch (error) {
console.error('Could not connect to socket', error);
return;
bgstack15