Rust Websocket_websys can not dial to tls/ws secure websocket (libp2p-go)
Summary
While trying to dial a secure websocket underlay, I/O error broken pipeline occured at multi_stream upgrade Tried with yamux as well as mplex. Can not find any configuration options in connection with TLS client for websocket_websys.
Expected behavior
We need websocket_websys to be able to dial to wss endpoints.
Actual behavior
I/O error broken pipeline
Relevant log output
Possible Solution
No response
Version
Main branch latest
Would you like to work on fixing this bug?
Yes
Further info: when trying to connect to wss from shared worker, it gives a more specific error "failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID" which might be because of the certificate on the other side is self-signed (for ip address). Accepting this - such as ws.WithTLSClientConfig(&tls.Config{InsecureSkipVerify: true}) in golang could solve the issue