Skip to main content

write_raw_message

Function write_raw_message 

Source
pub async fn write_raw_message<W: AsyncWrite + Unpin>(
    writer: &mut W,
    payload: &[u8],
) -> Result<(), Error>
Expand description

Write a raw JSON byte payload as a length-delimited IPC message.

This bypasses serialization entirely — useful for forwarding large tool/resource results without deserializing and re-serializing.