diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-26 16:16:41 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-26 16:16:41 -0700 |
commit | 3a651e5f02a90857e4023edb7ac9785d569417dd (patch) | |
tree | 8ca8ac15c3c2a708236e5db1fd1b577e880046aa /modern/src/store/session.js | |
parent | e01380561a113f868538e9a3399fc2406e250368 (diff) | |
download | trackermap-web-3a651e5f02a90857e4023edb7ac9785d569417dd.tar.gz trackermap-web-3a651e5f02a90857e4023edb7ac9785d569417dd.tar.bz2 trackermap-web-3a651e5f02a90857e4023edb7ac9785d569417dd.zip |
Socket status and backup
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; + }, }, }); |