2018-04-20 16:55:03 -04:00
|
|
|
/**
|
2018-04-25 13:51:01 -04:00
|
|
|
* Reducer for received websocket messages
|
2018-04-20 16:55:03 -04:00
|
|
|
*
|
|
|
|
* @param {object} state
|
|
|
|
* @param {object} action
|
|
|
|
* @return {object} newState
|
|
|
|
*/
|
2018-04-25 13:51:01 -04:00
|
|
|
export const receiveReducer = (state = {}, action) => {
|
2018-04-20 16:55:03 -04:00
|
|
|
switch (action.type) {
|
|
|
|
default:
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
};
|