WispV2Extensions -> WispV2Handshake and motd helpers

This commit is contained in:
Toshit Chawda 2024-10-25 18:23:16 -07:00
parent 36fddc8943
commit 41f2139eb1
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
7 changed files with 41 additions and 20 deletions

View file

@ -38,7 +38,7 @@ use wisp_mux::{
udp::{UdpProtocolExtension, UdpProtocolExtensionBuilder},
AnyProtocolExtensionBuilder,
},
ClientMux, StreamType, WispError, WispV2Extensions,
ClientMux, StreamType, WispError, WispV2Handshake,
};
#[derive(Debug)]
@ -198,7 +198,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
.await?
.with_no_required_extensions()
} else {
ClientMux::create(rx, tx, Some(WispV2Extensions::new(extensions)))
ClientMux::create(rx, tx, Some(WispV2Handshake::new(extensions)))
.await?
.with_required_extensions(extension_ids.as_slice())
.await?