PromucFlow_constructor/app/client/src/selectors/websocketSelectors.ts
Pranav Kanade a1488a73f6
refactor: client side rts (#7837)
* moved constants to a proper files

* added new action constants

* updated websocket reducers and actions

* updated websocket saga to handle proper socket events

* updated initialization

* updated multi pointer arena + realtime app editors components

* minor feedback update

* updated events list by socket level

* removed e.persist

* passing socket obj rather than just id
2021-10-01 16:44:19 +00:00

7 lines
262 B
TypeScript

import { AppState } from "reducers";
export const getIsPageLevelSocketConnected = (state: AppState) =>
state.ui.websocket.pageLevelSocketConnected;
export const getIsAppLevelSocketConnected = (state: AppState) =>
state.ui.websocket.appLevelSocketConnected;