socket.me
Version:
Fast Strong-typed WebSockets
20 lines (16 loc) • 332 B
JavaScript
/**
*
* @param {object} table
* @param {string} key
* @param {any} payload
*/
function silentCallByKey(table, key, payload) {
const action = table[key];
if(action) {
action(payload);
}
}
//--------------------------------------------------
module.exports = {
silentCallByKey
};