Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 342 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 342 Bytes

spinta

This is a simple Server-sent events client for Rust which can be compiled to both native and web (WASM).

Usage

let receiver = spinta::connect("http://example.com").unwrap();
while let Some(event) = receiver.try_recv() {
    println!("Received {:?}", event);
}