pub fn write_message<W: Write>(writer: &mut W, message: &Value) -> Result<()>Expand description
Writes one message as one line and flushes it. The message is serialised
by serde_json, which never emits a raw newline inside a string.
ยงErrors
Returns the stream failure.