Skip to main content

hash_key

Function hash_key 

Source
pub fn hash_key(key: &[u8]) -> Result<String, HandshakeError>
Expand description

Computes the Sec-WebSocket-Accept value for a client handshake key.

ยงErrors

Returns HandshakeError::BadWebsocketKey when key is longer than 32 bytes.