accept_async_with_config

Function accept_async_with_config 

Source
pub async fn accept_async_with_config<S>(
    stream: S,
    config: impl Into<Config>,
) -> Result<WebSocketStream<S>, Error>
where S: AsyncRead + AsyncWrite,
Available on crate feature ws only.
Expand description

Similar to accept_async() but user can specify a Config.