pub fn encode_message(tag: &str, body: &Value) -> Vec<u8> ⓘExpand description
Encodes one message frame: the header, then the body.
Public because the tests that matter here decode what this produced, and a consumer written against this server is entitled to the same encoder.