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

[Feature Request] REST API long polling #307

Closed
NikkyAI opened this issue Dec 3, 2017 · 1 comment
Closed

[Feature Request] REST API long polling #307

NikkyAI opened this issue Dec 3, 2017 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@NikkyAI
Copy link
Contributor

NikkyAI commented Dec 3, 2017

the rest api could (and should imo) use long polling

there seems to be a library for it for golang
https://github.com/jcuga/golongpoll

and its README explains best why it is a better approach than spamming the sebserver asking for new events
https://github.com/jcuga/golongpoll#what-is-longpolling

also a little help / guide for implementing a python client that supports longpolling found here
http://blog.fanout.io/2016/11/21/moving-from-polling-to-long-polling/

@NikkyAI NikkyAI changed the title [PROPOSAL] REST API long polling [Feature Request] REST API long polling Dec 3, 2017
@42wim 42wim added this to the 1.6.0 milestone Dec 3, 2017
@42wim 42wim added the enhancement New feature or request label Dec 3, 2017
@42wim
Copy link
Owner

42wim commented Dec 7, 2017

I've added a simple long-polling solution for your use case, only 1 listener can get the stream at the moment. If there's a use case for multiple listeners I can expand this.

The streaming is available at /api/stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants