SSE Client
EventSource implementation in Rust to handle streams of Server-Sent Events. It handles connections, redirections, retries and message parsing.
To know more about SSE: Standard | EventSource interface
Example:
Usage:
extern crate sse_client;
use EventSource;
let event_source = new.unwrap;
event_source.on_message;
event_source.add_event_listener;
Or:
extern crate sse_client;
use EventSource;
let event_source = new.unwrap;
for event in event_source.receiver.iter
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.