Crates.io | spinta |
lib.rs | spinta |
version | 0.1.5 |
source | src |
created_at | 2022-12-06 09:02:40.612315 |
updated_at | 2023-01-06 08:29:05.403862 |
description | Server-sent events client that works natively and on the web (WASM) |
homepage | https://github.com/fireyy/spinta |
repository | https://github.com/fireyy/spinta |
max_upload_size | |
id | 731011 |
size | 46,801 |
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);
}