This project adheres to Semantic Versioning
- Query parameters were being stripped from connection URL. Thanks @Cldfire for finding this bug.
- Build warnings
- Added optional HTTPS support. Thanks to @Atte for this contribution.
- Fixed deprecation warnings
- Dual license as MIT and Apache 2.0 for extended compatibility.
Although this version is backwards compatible, I decided to bump from 0.1.1 to 1.0.0 to make clear the implementation is complete.
- Blocking API for reading events:
let event_source = EventSource::new("http://event-stream-address/sub").unwrap();
for event in event_source.receiver().iter() {
println!("New Message: {}", event.data);
}
- hosts didn't work when port not provided
- fields without
:
or any random message could break the stream
Initial release