text: import { createSlice } from '@reduxjs/toolkit'
  
  const clientFeature = createSlice({
  
      name: 'client',
      initialState: {
          fleet: null,
          roomId: null,
          endpointUrl: null,
          token: null
      },
  
      reducers: {
          
          setClientProperties: (state, { payload: { fleet = null, roomId = null, endpointUrl = null, token = null } }) => {
              state.fleet = fleet
              state.roomId = roomId
              state.endpointUrl = endpointUrl
              state.token = token
              return state
          }
      }
  
  })
  
  const { setClientProperties } = clientFeature.actions
  
  export default clientFeature.reducer
  export { setClientProperties }