pub async fn client_async_with_config<R, S, T>(
request: R,
stream: T,
config: impl Into<Config>,
) -> Result<(WebSocketStream<S>, Response<Option<Vec<u8>>>), Error>where
R: IntoClientRequest + Unpin,
S: Splittable + 'static,
<S as Splittable>::ReadHalf: AsyncRead + Unpin,
<S as Splittable>::WriteHalf: AsyncWrite + Unpin,
T: IntoMaybeTlsStream<S>,Available on crate feature
ws only.Expand description
Similar to client_async() but user can specify a Config.