{"id":13994950,"url":"https://github.com/launchdarkly/swift-eventsource","last_synced_at":"2025-10-21T09:18:06.844Z","repository":{"id":38769991,"uuid":"255674342","full_name":"launchdarkly/swift-eventsource","owner":"launchdarkly","description":"Server-sent events (SSE) client implementation in Swift for iOS, macOS, tvOS, and watchOS","archived":false,"fork":false,"pushed_at":"2024-08-13T16:31:23.000Z","size":1122,"stargazers_count":196,"open_issues_count":3,"forks_count":36,"subscribers_count":37,"default_branch":"main","last_synced_at":"2024-11-14T03:52:03.786Z","etag":null,"topics":["eventsource","feature-flags","feature-toggles","ios","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","macos","managed-by-terraform","server-sent-events","swift","tvos","watchos"],"latest_commit_sha":null,"homepage":"https://launchdarkly.github.io/swift-eventsource/","language":"Swift","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":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-14T17:14:03.000Z","updated_at":"2024-11-14T02:56:07.000Z","dependencies_parsed_at":"2022-07-09T10:46:09.094Z","dependency_job_id":"12fc333a-82f1-4f53-a83d-7fb61758b690","html_url":"https://github.com/launchdarkly/swift-eventsource","commit_stats":{"total_commits":69,"total_committers":13,"mean_commits":"5.3076923076923075","dds":"0.46376811594202894","last_synced_commit":"57051701c58a93603ffa2051f8e9cf0c8cff7814"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fswift-eventsource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fswift-eventsource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fswift-eventsource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fswift-eventsource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/swift-eventsource/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177712,"owners_count":17743147,"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":["eventsource","feature-flags","feature-toggles","ios","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","macos","managed-by-terraform","server-sent-events","swift","tvos","watchos"],"created_at":"2024-08-09T14:03:11.494Z","updated_at":"2025-10-21T09:18:06.753Z","avatar_url":"https://github.com/launchdarkly.png","language":"Swift","readme":"# LDSwiftEventSource\n\n[![Run CI](https://github.com/launchdarkly/swift-eventsource/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/swift-eventsource/actions/workflows/ci.yml)\n[![CocoaPods](https://img.shields.io/cocoapods/v/LDSwiftEventSource.svg)](https://cocoapods.org/pods/LDSwiftEventSource)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)\n[![Platform](https://img.shields.io/cocoapods/p/LDSwiftEventSource.svg?style=flat)](https://cocoapods.org/pods/LDSwiftEventSource)\n\nLDSwiftEventSource is a cross platform implementation of the [EventSource specification](https://html.spec.whatwg.org/multipage/server-sent-events.html) written in Swift. It was developed for use in the [LaunchDarkly iOS SDK](https://github.com/launchdarkly/ios-client-sdk). Generated API docs are available on [GitHub Pages](https://launchdarkly.github.io/swift-eventsource/).\n\n## Requirements\n- iOS 11.0+ / watchOS 4.0+ / tvOS 11.0+ / macOS 10.13+\n- Swift 5.1+\n\n## Installation\n\n### CocoaPods\n\nTo use the [CocoaPods](https://cocoapods.org) dependency manager to integrate LDSwiftEventSource into your Xcode project, specify it in your `Podfile`:\n\n```ruby\npod 'LDSwiftEventSource', '~\u003e 3.3'\n```\n\n### Carthage\n\nTo use the [Carthage](https://github.com/Carthage/Carthage) dependency manager to integrate LDSwiftEventSource into your Xcode project, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"LaunchDarkly/swift-eventsource\" ~\u003e 3.3\n```\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a dependency manager integrated into the `swift` compiler and Xcode. Note that the LDSwiftEventSource Swift package provides both a `LDSwiftEventSource` product, which is explicitly dynamic, and a `LDSwiftEventSourceStatic` product which is explicitly static.\n\nTo integrate LDSwiftEventSource into an Xcode project, go to the project editor, and select `Swift Packages`. From here hit the `+` button and follow the prompts using  `https://github.com/LaunchDarkly/swift-eventsource.git` as the URL.\n\nTo include LDSwiftEventSource in a Swift package, simply add it to the dependencies section of your `Package.swift` file. And add the desired product as a dependency for your targets.\n\n\u003c!-- x-release-please-start-version --\u003e\n```swift\ndependencies: [\n    .package(url: \"https://github.com/LaunchDarkly/swift-eventsource.git\", .upToNextMajor(from: \"3.3.0\"))\n]\n```\n\u003c!-- x-release-please-end --\u003e\n\n## Contributing\n\nWe encourage pull requests and other contributions from the community. Check out our [contributing guidelines](https://github.com/LaunchDarkly/swift-eventsource/blob/main/CONTRIBUTING.md) for instructions on how to contribute to this SDK.\n\n## About LaunchDarkly\n\n* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard.  With LaunchDarkly, you can:\n    * Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.\n    * Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).\n    * Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.\n    * Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.\n* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.\n* Explore LaunchDarkly\n    * [launchdarkly.com](https://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com](https://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDK reference guides\n    * [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com](https://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fswift-eventsource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fswift-eventsource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fswift-eventsource/lists"}