Skip to main content

serialize

Function serialize 

Source
pub fn serialize(msg: &Message) -> Vec<u8> 
Expand description

Serialize a Message into a bincode payload. WebSocket framing handles length-prefixing for us, so this is just the raw bincode bytes.