risclient

Crates.iorisclient
lib.rsrisclient
version0.1.1
sourcesrc
created_at2022-04-02 02:34:32.392136
updated_at2022-04-02 02:41:19.346454
descriptionAn extremely simple streaming client for the RIPE RIS-Live service.
homepage
repositoryhttps://github.com/devec0/risclient
max_upload_size
id560630
size67,248
James "ec0" Hebden (devec0)

documentation

README

risclient

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.

TODO

  • error handling could use improvement
  • potentially moving to a yield pattern could be more flexible
  • some tests, probably

author

James "ec0" Hebden

Commit count: 5

cargo fmt