Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.listen depreciated in favour of api.listenMqtt #4

Merged
merged 2 commits into from
Jun 1, 2020
Merged

api.listen depreciated in favour of api.listenMqtt #4

merged 2 commits into from
Jun 1, 2020

Conversation

ethan-ou
Copy link
Contributor

@ethan-ou ethan-ou commented May 1, 2020

It looks like recently the Facebook API changed to use a different messaging protocol called MQTT. The facebook-chat-api library updated to include this change by depreciating api.listen in favour of api.listenMqtt. According to their docs, it's mostly a drop-in replacement.

More on the API change can be found in the docs as well as in in issue #763.

This pull request also solves issue #137 in the Messer repo where new messages were not being received after login to Messer.

@stevenwaterman
Copy link

@tomquirk Is there anything stopping this being merged? Messer is basically unusable atm

Copy link
Owner

@tomquirk tomquirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ethan-ou thanks for this fix. listen is certainly not deprecated by the looks of their docs and the issue you linked to, however it is definitely broken, and listenMqtt appears to work. Let's merge your fix!! I just requested 1 change. Ping me again when you resolve and I will merge 👍

src/messen.ts Show resolved Hide resolved
@tomquirk tomquirk merged commit b7eb21b into tomquirk:master Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants