http-stream 0.12.1

Http json streaming library
Documentation

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