pub async fn accept_async_with_config<S, T>(
stream: T,
config: impl Into<Config>,
) -> Result<WebSocketStream<S>, Error>where
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 accept_async() but user can specify a Config.