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.
pub fn decode(frame: &[u8]) -> Result<Message, ProtocolError>Decodes one binary WebSocket frame.
frame is the whole message: byte 0 is the type tag, the rest is payload.