Fix events I hope
This commit is contained in:
parent
a987800cd7
commit
4f35efcf79
@ -1,3 +1,4 @@
|
|||||||
|
const EventEmitter = require('events');
|
||||||
const mqtt = require('mqtt');
|
const mqtt = require('mqtt');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -44,10 +45,10 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
// Communicator class
|
// Communicator class
|
||||||
Communicator: class Communicator {
|
Communicator: class Communicator extends EventEmitter {
|
||||||
constructor(state) {
|
constructor(state) {
|
||||||
|
super();
|
||||||
this.publisher = state.publisher;
|
this.publisher = state.publisher;
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
init(state, config) {
|
init(state, config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user