-
Notifications
You must be signed in to change notification settings - Fork 222
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
Accept http
/https
schemes in URIs for tungstenite::client::{connect, client}
#451
Comments
If by "endpoints that are upgraded" you mean running |
We throw an error here for everything that isn't |
Ah, now I understand what you mean. We expect the URI to have a schema of Alternatively, if the upgrade to the WebSockets happens at a later point in time ('custom' protocol or else), you could always use the previously mentioned functions to construct a That being said, I understand the inconvenience for certain rare use cases and AFAIK some WebSocket clients accept http/https schemas for the WebSocket URIs, although these are not yet universally supported. In that respect, I'm not against extending our implementation to accept http/https URIs in addition to ws/wss URIs (unless there are strong reasons not to do this). |
tungstenite::client::connect
on http(s) urlhttp
/https
schemes in URIs for tungstenite::client::{connect, client}
The kubernetes |
Updating the |
Glad it worked for you! As for the issue - following my previous comment, I'm not opposed to implementing this change. As I mentioned, we did initially stick to |
Agree, but this has to be feature-gated. There are potential use-cases where it could be unexpected and even security critical, mostly if the address comes from an user input field. |
Can we allow connect to http(s) url for endpoints that are upgraded?
The text was updated successfully, but these errors were encountered: