From 3a651e5f02a90857e4023edb7ac9785d569417dd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 26 May 2022 16:16:41 -0700 Subject: Socket status and backup --- modern/src/store/session.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modern/src/store') diff --git a/modern/src/store/session.js b/modern/src/store/session.js index 9f98b8ae..88d1eb44 100644 --- a/modern/src/store/session.js +++ b/modern/src/store/session.js @@ -5,6 +5,7 @@ const { reducer, actions } = createSlice({ initialState: { server: null, user: null, + socket: null, }, reducers: { updateServer(state, action) { @@ -13,6 +14,9 @@ const { reducer, actions } = createSlice({ updateUser(state, action) { state.user = action.payload; }, + updateSocket(state, action) { + state.socket = action.payload; + }, }, }); -- cgit v1.2.3