Skip to main content

write_message

Function write_message 

Source
pub async fn write_message<W, T>(
    writer: &mut W,
    msg: &T,
) -> Result<(), FrameError>
where W: AsyncWrite + Unpin, T: Serialize,
Expand description

Write a typed message as a length-prefixed JSON frame.