diff options
Diffstat (limited to 'modern/src/store/session.js')
-rw-r--r-- | modern/src/store/session.js | 4 |
1 files changed, 4 insertions, 0 deletions
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; + }, }, }); |