Fix events I hope

This commit is contained in:
Skylar Grant 2024-08-21 22:11:57 -04:00
parent a987800cd7
commit 4f35efcf79
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
const EventEmitter = require('events');
const mqtt = require('mqtt');
module.exports = {
@ -44,10 +45,10 @@ module.exports = {
};
},
// Communicator class
Communicator: class Communicator {
Communicator: class Communicator extends EventEmitter {
constructor(state) {
super();
this.publisher = state.publisher;
return this;
}
init(state, config) {