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

Provide a WebSocket for Events #1

Open
dns2utf8 opened this issue Nov 16, 2015 · 3 comments
Open

Provide a WebSocket for Events #1

dns2utf8 opened this issue Nov 16, 2015 · 3 comments

Comments

@dns2utf8
Copy link
Contributor

Let a Client connect to the Server with a WebSocket, so the Server can send Events to the Client without the Client polling it.

What do you think?

@dbrgn
Copy link
Collaborator

dbrgn commented Nov 16, 2015

That would be interesting indeed :)

@dbrgn
Copy link
Collaborator

dbrgn commented Jun 24, 2016

After another though, we could also use Server-Sent Events to send events to clients over HTTP. It's probably simpler to implement and use.

Here's some more information about SSE: https://medium.com/code-zen/python-generator-and-html-server-sent-events-3cdf14140e56

@dns2utf8 dns2utf8 modified the milestone: 0.4.0 Sep 1, 2016
@dbrgn
Copy link
Collaborator

dbrgn commented Jan 21, 2018

Looks hard to implement at the moment: https://stackoverflow.com/questions/38179117/how-can-i-use-server-sent-events-in-iron

Furthermore, since Iron is synchronous, we'd probably keep an entire Thread busy with sending out events.

In the long term, we should probably move to an async solution. Maybe with actix-web?

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

No branches or pull requests

2 participants