Skip to main content

decode_raw_events

Function decode_raw_events 

Source
pub fn decode_raw_events<S, B, E>(
    chunks: S,
) -> impl Stream<Item = Result<Value>>
where S: Stream<Item = Result<B, E>>, B: AsRef<[u8]>, E: Error + Send + Sync + 'static,
Expand description

Decodes SSE frames into raw JSON values. A transport hands these on as TransportStream::json, so the common compatibility boundary runs on what the peer actually sent.