Skip to content

ta3pks/http-streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple http streaming library

Resources

License

Stars

Watchers

Forks

Packages

No packages published