Crates.io | http-stream |
lib.rs | http-stream |
version | 0.14.2 |
source | src |
created_at | 2019-03-26 16:39:59.732568 |
updated_at | 2020-06-20 16:20:50.361406 |
description | Http json streaming library |
homepage | |
repository | https://github.com/nikosEfthias/http-streamer |
max_upload_size | |
id | 123999 |
size | 8,222 |
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");
}