mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
make requiring protocol extensions easy
This commit is contained in:
parent
063b527914
commit
01d7ac5002
6 changed files with 143 additions and 90 deletions
|
@ -203,7 +203,11 @@ pub async fn make_mux(
|
|||
let (wtx, wrx) =
|
||||
WebSocketWrapper::connect(url, vec![]).map_err(|_| WispError::WsImplSocketClosed)?;
|
||||
wtx.wait_for_open().await;
|
||||
ClientMux::new(wrx, wtx, Some(&[Box::new(UdpProtocolExtensionBuilder())])).await
|
||||
Ok(
|
||||
ClientMux::create(wrx, wtx, Some(&[Box::new(UdpProtocolExtensionBuilder())]))
|
||||
.await?
|
||||
.with_no_required_extensions(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn spawn_mux_fut(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue