From 76da9fd6192042d395ecd6a0d5e2acec08dc352f Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Sat, 13 Apr 2024 22:57:27 -0700 Subject: [PATCH] add notice about protocol extension availability --- wisp/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wisp/src/lib.rs b/wisp/src/lib.rs index d8f7dd0..b25f01b 100644 --- a/wisp/src/lib.rs +++ b/wisp/src/lib.rs @@ -473,6 +473,8 @@ impl ServerMux { /// Create a new server-side multiplexor. /// /// If extension_builders is None a Wisp v1 connection is created otherwise a Wisp v2 connection is created. + /// **It is not guaranteed that all extensions you specify are available.** You must manually check + /// if the extensions you need are available after the multiplexor has been created. pub async fn new( mut read: R, write: W, @@ -601,6 +603,8 @@ impl ClientMux { /// Create a new client side multiplexor. /// /// If extension_builders is None a Wisp v1 connection is created otherwise a Wisp v2 connection is created. + /// **It is not guaranteed that all extensions you specify are available.** You must manually check + /// if the extensions you need are available after the multiplexor has been created. pub async fn new( mut read: R, write: W,