Function tokio_tungstenite::accept_async_with_config[][src]

pub fn accept_async_with_config<S>(
    stream: S,
    config: Option<WebSocketConfig>
) -> AcceptAsync<S, NoCallback> where
    S: AsyncRead + AsyncWrite

The same as accept_async() but the one can specify a websocket configuration. Please refer to accept_async() for more details.