Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function handleServerMessage(message, dispatch) {
const action = getAction(message);
if (action) {
dispatch(action);
} else {
warn('Unknown message from server');
}
}
function handleServerMessage(message, dispatch) {
const action = getAction(message);
if (action) {
dispatch(action);
} else {
warn('Unknown message from server');
}
}