Skip to main content

accept_async_with_config

Function accept_async_with_config 

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

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