pub fn websocket_accept_from_key(
key: &str,
) -> Result<String, WebSocketHandshakeError>Expand description
Compute Sec-WebSocket-Accept from Sec-WebSocket-Key (RFC 6455).
Validates that the key is base64 and decodes to 16 bytes (as required by RFC 6455).