Function async_tungstenite::tokio::client_async_tls
source ยท pub async fn client_async_tls<R, S>(
request: R,
stream: S,
) -> Result<(WebSocketStream<ClientStream<S>>, Response), Error>where
R: IntoClientRequest + Unpin,
S: 'static + AsyncRead + AsyncWrite + Unpin,
Stream<TokioAdapter<S>, TokioAdapter<TlsStream<S>>>: Unpin,
Expand description
Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.