This is a simple Server-sent events
client for Rust which can be compiled to both native and web (WASM).
let receiver = spinta::connect("http://example.com").unwrap();
while let Some(event) = receiver.try_recv() {
println!("Received {:?}", event);
}