Use client_async_tls_with_config when you need fine-grained control over the WebSocket handshake and the TLS layer. This allows you to provide:
config: An optional WebSocketConfig to control protocol settings (like frame size).connector: An optional Connector to specify whether to use native-tls, rustls, or Plain connections.
If connector is None, the library will attempt to use the best available TLS implementation based on enabled features (native-tls or __rustls-tls).
pub async fn client_async_tls_with_config<R, S>(
request: R,
stream: S,
config: Option<WebSocketConfig>,
connector: Option<Connector>,
) -> Result<(WebSocketStream<MaybeTlsStream<S>>, Response), Error>