jpopesculian/eventsource-stream

A basic building block for building an Eventsource from a Stream of bytes array like objects

Rust

38

21 commits

updated Aug 15, 2024

See the code

README

eventsource-stream

A basic building block for building an Eventsource from a Stream of bytes array like objects. To learn more about Server Sent Events (SSE) take a look at the MDN docs

Example

let mut stream = reqwest::Client::new()
    .get("http://localhost:7020/notifications")
    .send()
    .await?
    .bytes_stream()
    .eventsource();

while let Some(thing) = stream.next().await {
   println!("{:?}", thing);
}

License: MIT OR Apache-2.0

async
eventsource
rust
sse

jpopesculian/eventsource-stream

A basic building block for building an Eventsource from a Stream of bytes array like objects

Rust

38

21 commits

updated Aug 15, 2024

See the code

README

eventsource-stream

A basic building block for building an Eventsource from a Stream of bytes array like objects. To learn more about Server Sent Events (SSE) take a look at the MDN docs

Example

let mut stream = reqwest::Client::new()
    .get("http://localhost:7020/notifications")
    .send()
    .await?
    .bytes_stream()
    .eventsource();

while let Some(thing) = stream.next().await {
   println!("{:?}", thing);
}

License: MIT OR Apache-2.0

async
eventsource
rust
sse

Project health

Latest release

0.2.3 · Feb 17, 2022

Releases this year

0

Significant stargazers

Emmanuel Leblond

208 followers · starred May 2023

Daniel Imfeld

163 followers · starred May 2024

Congyu

66 followers · starred Aug 2024

Ian Woodard

34 followers · starred Sep 2025