-
Notifications
You must be signed in to change notification settings - Fork 236
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
tokio-tungstenite and hyper server #51
Comments
Here's an example of how to do a WebSocket upgrade with Hyper. https://github.com/krzysztofwos/hyper-websocket-upgrade I am evaluating |
Thanks for providing the example for others, unfortunately we did not have time to check the hyper implementation and prepare another example. As for the closing of the websocket connection -- you're right and we also thought about that. I think that one of the possible solutions may be an addition of close message to the We actually discussed that once here: #45 But somehow did not get to the point where we had time to do the change (it should probably be rather a small change though). |
Yes, I think it would be a fine solution. This is what |
For the hyper example (original question) I think you can refer to the already mentioned: https://github.com/krzysztofwos/hyper-websocket-upgrade Would it be sufficient? As for the possibility to get close errors, it's now merged to master (see #53), so you can use it already. We'll may also release a new version of |
https://github.com/krzysztofwos/hyper-websocket-upgrade is a 404 error now, is there any newer example for hyper & tokio-tungstenite? |
For those still looking for an alternative, hyper-tungstenite seems like a way to do this. |
Hi, i am writing a server where i need websocket connections. I have a whole server written in
hyper
. How can i addtokio-tungstenite
to the hyper server ?Would be good if you could show a simple example of that as i am still a newbie in Rust :)
Thank you.
The text was updated successfully, but these errors were encountered: