[][src]Function async_tungstenite::tokio::client_async_tls_with_connector

pub async fn client_async_tls_with_connector<R, S>(
    request: R,
    stream: S,
    connector: Option<AsyncTlsConnector>
) -> Result<(WebSocketStream<StreamSwitcher<S, TokioAdapter<TlsStream<TokioAdapter<S>>>>>, Response), Error> where
    R: IntoClientRequest + Unpin,
    S: 'static + AsyncRead + AsyncWrite + Unpin,
    StreamSwitcher<S, TokioAdapter<TlsStream<TokioAdapter<S>>>>: Unpin

Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given connector.