14 lines
239 B
JavaScript
14 lines
239 B
JavaScript
|
/**
|
||
|
* Reducer for websocket-based actions
|
||
|
*
|
||
|
* @param {object} state
|
||
|
* @param {object} action
|
||
|
* @return {object} newState
|
||
|
*/
|
||
|
export const wsReducer = (state = {}, action) => {
|
||
|
switch (action.type) {
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
};
|