Crates.io | risclient |
lib.rs | risclient |
version | 0.1.1 |
source | src |
created_at | 2022-04-02 02:34:32.392136 |
updated_at | 2022-04-02 02:41:19.346454 |
description | An extremely simple streaming client for the RIPE RIS-Live service. |
homepage | |
repository | https://github.com/devec0/risclient |
max_upload_size | |
id | 560630 |
size | 67,248 |
A very simple Rust crate to stream messages from the RIS Live service provided by RIPE.
Under the hood, this uses tungstenite and tokio to stream messages, deserialising them with serde from JSON.
The stream*
methods create a tokio task underneath the hood to keep deserialising and sending messages in the background.
A Receiver is returned from the stream*
methods so you can asynchronously iterate over the stream.
If you find this useful, let me know! If you make money using it, good for you.
yield
pattern could be more flexible