@chakrajs/framework
Version:
Modular JavaScript framework for building decentralized apps
18 lines (16 loc) • 333 B
JavaScript
/**
* Data to be published through the event bus
*/
class Message {
/**
* Create a new message
* @param {Topic} topic Topic of the content
* @param {Object} content Message content JSON
*/
constructor (topic, content) {
this.topic = topic
this.content = content
}
}
module.exports = Message