{"id":13878830,"url":"https://github.com/launchdarkly/ruby-eventsource","last_synced_at":"2026-01-23T19:06:19.154Z","repository":{"id":33973482,"uuid":"163915846","full_name":"launchdarkly/ruby-eventsource","owner":"launchdarkly","description":"Server-Sent Events client for Ruby","archived":false,"fork":false,"pushed_at":"2026-01-16T15:01:40.000Z","size":133,"stargazers_count":46,"open_issues_count":2,"forks_count":20,"subscribers_count":41,"default_branch":"main","last_synced_at":"2026-01-17T05:09:52.579Z","etag":null,"topics":["eventsource","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform","ruby","server-sent-events"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-03T02:56:56.000Z","updated_at":"2026-01-16T15:02:19.000Z","dependencies_parsed_at":"2026-01-16T19:02:27.915Z","dependency_job_id":null,"html_url":"https://github.com/launchdarkly/ruby-eventsource","commit_stats":{"total_commits":53,"total_committers":12,"mean_commits":4.416666666666667,"dds":0.4716981132075472,"last_synced_commit":"725200009c072e3190182b9d68f14c8b518c481a"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/ruby-eventsource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fruby-eventsource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fruby-eventsource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fruby-eventsource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fruby-eventsource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/ruby-eventsource/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fruby-eventsource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28698361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["eventsource","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform","ruby","server-sent-events"],"created_at":"2024-08-06T08:02:01.379Z","updated_at":"2026-01-23T19:06:19.136Z","avatar_url":"https://github.com/launchdarkly.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"LaunchDarkly SSE Client for Ruby\n================================\n\n[![Gem Version](https://badge.fury.io/rb/ld-eventsource.svg)](http://badge.fury.io/rb/ld-eventsource) \n[![Run CI](https://github.com/launchdarkly/ruby-eventsource/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/ruby-eventsource/actions/workflows/ci.yml)\n\nA client for the [Server-Sent Events](https://www.w3.org/TR/eventsource/) protocol. This implementation runs on a worker thread, and uses the [`http`](https://rubygems.org/gems/http) gem to manage a persistent connection. Its primary purpose is to support the [LaunchDarkly SDK for Ruby](https://github.com/launchdarkly/ruby-client), but it can be used independently.\n\nParts of this code are based on https://github.com/Tonkpils/celluloid-eventsource, but it does not use Celluloid.\n\nSupported Ruby versions\n-----------------------\n\nThis gem has a minimum Ruby version of 3.1.\n\nQuick setup\n-----------\n\n1. Install the Ruby SDK with `gem`:\n\n```shell\ngem install ld-eventsource\n```\n\n2. Import the code:\n\n```ruby\nrequire 'ld-eventsource'\n```\n\n3. Create a new SSE client instance and register your event handler:\n\n```ruby\nsse_client = SSE::Client.new(\"http://hostname/resource/path\") do |client|\n  client.on_event do |event|\n    puts \"I received an event: #{event.type}, #{event.data}\"\n  end\nend\n```\n\nFor other options available with the `Client` constructor, see the [API documentation](https://www.rubydoc.info/gems/ld-eventsource).\n\nContributing\n------------\n\nWe welcome questions, suggestions, and pull requests at our [Github repository](https://github.com/launchdarkly/ruby-eventsource). Pull requests should be done from a fork.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fruby-eventsource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fruby-eventsource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fruby-eventsource/lists"}