Function async_tungstenite::gio::accept_async_with_config
source · pub async fn accept_async_with_config<S>(
stream: S,
config: Option<WebSocketConfig>
) -> Result<WebSocketStream<IOStreamAsyncReadWrite<S>>, Error>where
S: IsA<IOStream> + Unpin,Expand description
The same as accept_async() but the one can specify a websocket configuration.
Please refer to accept_async() for more details.