6 lines
156 B
JavaScript
6 lines
156 B
JavaScript
|
export default socket => store => next => action => {
|
||
|
if (action.meta && action.meta.remote) {
|
||
|
socket.emit('action', action);
|
||
|
}
|
||
|
return next(action);
|
||
|
};
|