summaryrefslogtreecommitdiff
path: root/sw-ui/src/sagas.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src/sagas.ts')
-rw-r--r--sw-ui/src/sagas.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/sw-ui/src/sagas.ts b/sw-ui/src/sagas.ts
deleted file mode 100644
index 03c71b63..00000000
--- a/sw-ui/src/sagas.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { SagaIterator } from 'redux-saga';
-import { call, fork } from 'redux-saga/effects';
-import { connectToGame, SevenWondersSession } from './api/sevenWondersApi';
-import { errorHandlingSaga } from './sagas/errors';
-import { gameSaga } from './sagas/game';
-import { gameBrowserSaga } from './sagas/gameBrowser';
-import { homeSaga } from './sagas/home';
-import { lobbySaga } from './sagas/lobby';
-
-export function* rootSaga(): SagaIterator {
- let sevenWondersSession: SevenWondersSession;
- try {
- sevenWondersSession = yield call(connectToGame);
- } catch (error) {
- console.error('Could not connect to socket', error);
- return;
- }
- yield fork(errorHandlingSaga, sevenWondersSession);
- yield fork(homeSaga, sevenWondersSession);
- yield fork(gameBrowserSaga, sevenWondersSession);
- yield fork(lobbySaga, sevenWondersSession);
- yield fork(gameSaga, sevenWondersSession);
-}
bgstack15