12 releases

0.14.2 Jun 20, 2020
0.14.1 Jun 20, 2020
0.13.0 Sep 5, 2019
0.12.2 May 4, 2019
0.9.2 Mar 26, 2019

#170 in #streaming

MIT license

8KB
151 lines

Readme

A thread-safe EventSource library for the fellow Rustaceans.

Examples

	
	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");
	}

Todo

  • send_with_event
  • send_json
  • new_with_client_timeout
  • new_with_auth
  • resume

Dependencies

~2.5–4MB
~70K SLoC