pub fn ws_subprotocol_token<'a, I>(
subprotocols: I,
token: &str,
) -> Option<&'a str>where
I: IntoIterator<Item = &'a str>,Expand description
Extracts and verifies the bridge token from WebSocket subprotocols.
Returns the matching subprotocol to echo back in the handshake response, or
None if no presented protocol matches the expected token.