Minetrack/lib/message.js
2020-05-05 16:49:01 -05:00

7 lines
115 B
JavaScript

module.exports = function MessageOf (name, data) {
return JSON.stringify({
message: name,
...data
})
}