pub fn encode<T: Serialize>(value: &T) -> Vec<u8> ⓘ
Encodes a protocol value (or a game message) for a WebSocket binary message.