Skip to main content

stream_decode

Function stream_decode 

Source
pub fn stream_decode(data: &[u8]) -> Result<StreamMessage, Error>
Expand description

Decode a single JSON stream line into a StreamMessage.

ยงErrors

Returns an error if the JSON is malformed or the op field is missing/unknown.