Skip to main content

client_async_tls

Function client_async_tls 

Source
pub async fn client_async_tls<R, S>(
    request: R,
    stream: PollFd<S>,
) -> Result<(WebSocketStream<S>, Response<Option<Vec<u8>>>), Error>
where R: IntoClientRequest, S: AsFd + 'static,
Available on crate feature ws only.
Expand description

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