pub async fn connect_async<R>(
request: R,
) -> Result<(WebSocketStream<SocketWithState>, Response<Option<Vec<u8>>>), Error>where
R: IntoClientRequest,Available on crate feature
ws only.Expand description
Connect to a given URL.