spinta 0.1.5

Server-sent events client that works natively and on the web (WASM)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# spinta

This is a simple [`Server-sent events`](https://en.wikipedia.org/wiki/Server-sent_events) client for Rust which can be compiled to both native and web (WASM).

## Usage

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