pub fn write_message<W: Write>(
writer: &mut W,
payload: &[u8],
framing: Framing,
) -> Result<()>Expand description
Write payload using framing. Does not append a second newline to JSON.
ยงErrors
Returns an error when payload exceeds MAX_MESSAGE_BYTES or the writer
fails.