Expand description
Open a WebSocket connection using a Rust client in JS.
§Cargo features
- rustls-tls (enabled by default): Enables TLS functionality provided by
rustlswith WebPKI roots. - rustls-tls-native-roots: Enables TLS functionality provided by
rustlswith the platform’s native certificate roots. - native-tls: Enables TLS functionality provided by
native-tls. - native-tls-vendored: Enables the
vendoredfeature ofnative-tls.
At least one TLS feature is required for wss://; plain ws:// works without one.