Minetrack/lib/message.js
2023-12-30 23:03:54 +00:00

7 lines
117 B
JavaScript

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