Function write

Source
pub async fn write<W>(
    writer: &mut W,
    msg: &Message,
) -> Result<(), Box<dyn Error + Send + Sync>>
where W: AsyncWrite + Unpin,
Expand description

Write a message to the writer as a JSON encoded line.