pub fn encode_frame(from_id: &str, body: &str) -> Vec<u8> ⓘExpand description
Encode (from, body) into the structural wire payload:
[u32 BE len(from)][from][body]. No legacy reply-to header, no newline
framing — from and body are carried as raw byte ranges, so a body that is
itself a pre-formed <EVENT> envelope rides verbatim.