Readme
A thread-safe EventSource library for the fellow Rustaceans.
Examples
let s = new;
let s1=s.clone;
spawn;
loop
Todo
- send_with_event
- send_json
- new_with_client_timeout
- new_with_auth
- resume
A thread-safe EventSource library for the fellow Rustaceans.
let s = Streamer::new();
let s1=s.clone();
std::thread::spawn(||s1.start("localhost:1234"));
loop
{
std::thread::sleep_ms(1000);
s.send_with_event("myevent","mydata");
}