-
-
Notifications
You must be signed in to change notification settings - Fork 97
Description
I tried using this library to connect to a websocket server with TLS, which uses wss as a scheme. As the scheme is not https it is falling back to a regular http connection and then failing because it is actually https. It seems impossible to connect to a websocket server with the wss scheme with this connector unfortunately.
For now I've made my own copy of the HttpsConnector<T> which works for this use case, but I feel like there should be a connector here which will allow this. Perhaps a ForceHttpsConnector<T> or something, which will just presume that the connection is https and then error later down the line if it turns out that it actually isn't rather than trying to fail early.
Alternatively, include wss in the check for is_https, but that feels comparatively short sighted.