[−][src]Function tokio_tungstenite::client_async_tls_with_config
pub async fn client_async_tls_with_config<R, S>(
request: R,
stream: S,
config: Option<WebSocketConfig>,
tls_connector: Option<TlsConnector>
) -> Result<(WebSocketStream<S>, Response), Error> where
R: IntoClientRequest + Unpin,
S: 'static + AsyncRead + AsyncWrite + Send + Unpin,
S: Unpin,
The same as client_async_tls()
but the one can specify a websocket configuration,
and an optional TLS connector. If no connector is specified, the default one will
be created.
Please refer to client_async_tls()
for more details.