fireyy / spinta

A Rust Server-sent events client library that can be compiled to both native and the web (WASM).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);
}

About

A Rust Server-sent events client library that can be compiled to both native and the web (WASM).

License:Apache License 2.0


Languages

Language:Rust 100.0%