7 lines
117 B
JavaScript
7 lines
117 B
JavaScript
module.exports = function MessageOf(name, data) {
|
|
return JSON.stringify({
|
|
message: name,
|
|
...data,
|
|
});
|
|
};
|