{"id":21943276,"url":"https://github.com/viniciusgerevini/sse-client","last_synced_at":"2025-06-20T16:37:35.004Z","repository":{"id":57668425,"uuid":"146137605","full_name":"viniciusgerevini/sse-client","owner":"viniciusgerevini","description":"EventSource implementation in Rust to handle streams of Server-Sent Events","archived":false,"fork":false,"pushed_at":"2025-06-19T01:42:56.000Z","size":148,"stargazers_count":19,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-19T02:34:10.699Z","etag":null,"topics":["client","eventsource","sse","sse-client","stream"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viniciusgerevini.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-25T23:49:41.000Z","updated_at":"2025-06-19T01:43:00.000Z","dependencies_parsed_at":"2022-08-27T03:24:49.799Z","dependency_job_id":null,"html_url":"https://github.com/viniciusgerevini/sse-client","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/viniciusgerevini/sse-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusgerevini%2Fsse-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusgerevini%2Fsse-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusgerevini%2Fsse-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusgerevini%2Fsse-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viniciusgerevini","download_url":"https://codeload.github.com/viniciusgerevini/sse-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusgerevini%2Fsse-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260979956,"owners_count":23092094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","eventsource","sse","sse-client","stream"],"created_at":"2024-11-29T03:29:14.381Z","updated_at":"2025-06-20T16:37:29.989Z","avatar_url":"https://github.com/viniciusgerevini.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSE Client\n\n[![Documentation](https://docs.rs/sse-client/badge.svg)](https://docs.rs/sse-client/) [![Build Status](https://travis-ci.com/viniciusgerevini/sse-client.svg?branch=master)](https://travis-ci.com/viniciusgerevini/sse-client)\n\nEventSource implementation in Rust to handle streams of Server-Sent Events.\nIt handles connections, redirections, retries and message parsing.\n\nTo know more about SSE: [Standard](https://html.spec.whatwg.org/multipage/server-sent-events.html) | [EventSource interface](https://developer.mozilla.org/en-US/docs/Web/API/EventSource)\n\n# Example:\n\nUsage:\n\n```rust\nextern crate sse_client;\nuse sse_client::EventSource;\n\n\nlet event_source = EventSource::new(\"http://event-stream-address/sub\").unwrap();\n\nevent_source.on_message(|message| {\n    println!(\"New message event {:?}\", message);\n});\n\nevent_source.add_event_listener(\"error\", |error| {\n    println!(\"Error {:?}\", error);\n});\n\n```\n\nOr:\n\n```rust\nextern crate sse_client;\nuse sse_client::EventSource;\n\nlet event_source = EventSource::new(\"http://event-stream-address/sub\").unwrap();\n\nfor event in event_source.receiver().iter() {\n    println!(\"New Message: {}\", event.data);\n}\n```\n## Cargo features\n\n* `native-tls` enables support for HTTPS URLs using [native-tls](https://crates.io/crates/native-tls)\n* `native-tls-vendored` will additionally link OpenSSL statically\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE))\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT))\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciusgerevini%2Fsse-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviniciusgerevini%2Fsse-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciusgerevini%2Fsse-client/lists"}