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