Skip to content

Commit

Permalink
Merge pull request #4 from ethan-ou/master
Browse files Browse the repository at this point in the history
api.listen depreciated in favour of api.listenMqtt
  • Loading branch information
tomquirk committed Jun 1, 2020
2 parents 21dc01f + eb81634 commit b7eb21b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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;
}
}
}
2 changes: 1 addition & 1 deletion src/types/facebook-chat-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ declare namespace Facebook {
["INBOX", "unread"] | ["ARCHIVED", "unread"] | ["PENDING", "unread"] | ["OTHER", "unread"]

export class API {
listen(
listenMqtt(
callback: (err: Facebook.FacebookError | undefined, event: Facebook.APIEvent) => void,
): void;
getCurrentUserID(): string;
Expand Down

0 comments on commit b7eb21b

Please sign in to comment.