-
Notifications
You must be signed in to change notification settings - Fork 284
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
Websockets with web interface #952
Comments
Hm, I thought that a convenient way had already been implemented at some point (with making a web interface method like BTW, if you have anything where I didn't reply yet, feel free to ping me. I didn't get to read my GitHub notifications and forum messages from roughly October to early February, |
Thank you for your reply. I try to avoid pinging unless i feel I need too (when urgent that is) |
I think this would quickly become deprecated, with HTTP/2 around the corner we're about to revive "long polling", because connections are now simply different "streams" living inside a single TCP Connection. The "long poll" would be a sleeping vibe.d Also, although HTTP/2 is a one-way protocol (client->server or server->client), I'm adding a feature that allows to switch the direction (for RPC), giving a server the ability to become the client, and a client to become a server even though it's behind NAT & firewalls. The client can then start another HTTP2Connection and have both, a client and server HTTP2Connection with support for unlimited concurrent streams ( |
Yeah HTTP/2 is being adopted very slowly according to recent statistics. But wow, I totally forgot I had had this idea. I was imagining a client stream that can interchange its role with a server (to become another HTTP/2 server over a single HTTP/2 stream, but behind a firewall). I ended up concluding that polling on multiple streams simultaneously would do just fine to avoid latency, but I'm sure someone will end up implementing it eventually. |
Is there a more manageable way to setup websockets within a web interface?
The text was updated successfully, but these errors were encountered: