Skip to main content

decode

Function decode 

Source
pub fn decode(frame: &[u8]) -> Result<Message, ProtocolError>
Expand description

Decodes one binary WebSocket frame.

frame is the whole message: byte 0 is the type tag, the rest is payload.