Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Use long polling instead of periodical polling #6

Open
NanoSector opened this issue Nov 25, 2018 · 0 comments
Open

Use long polling instead of periodical polling #6

NanoSector opened this issue Nov 25, 2018 · 0 comments

Comments

@NanoSector
Copy link
Member

Long polling keeps the connection open until the client gets data from the server, then closes it and fires a new request immediately.

The module now polls telegram once a second which is inefficient and can cause delays of up to 2 seconds when receiving messages from Telegram. Long polling should solve this problem.

We'd need to look into whether ReactPHP supports this technique.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant