pub fn serialize(msg: &Message) -> Vec<u8> ⓘ
Serialize a Message into a bincode payload. WebSocket framing handles length-prefixing for us, so this is just the raw bincode bytes.