Skip to content

Commit

Permalink
api.listen depreciated in favour of api.listenMqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-ou committed May 1, 2020
1 parent 21dc01f commit 12435de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class Messen {
}

listen(): void {
this.api.listen((err, ev) => {
this.api.listenMqtt((err, ev) => {
if (err) {
return logger.info(err.error);
}
Expand Down Expand Up @@ -165,4 +165,4 @@ export class Messen {

this.state.authenticated = false;
}
}
}

0 comments on commit 12435de

Please sign in to comment.