pub fn encode_transport_frame(frame: &ServerFrame) -> Result<Vec<u8>>Expand description
Encodes a frame into its length-prefixed transport byte form.
Lays out a fixed prefix of big-endian header and payload lengths followed by the encoded header and the raw payload; errors if either part exceeds the transport size limit.