Install LDSwiftEventSource via CocoaPods
mainTo integrate LDSwiftEventSource into your Xcode project using CocoaPods, add the following line to your Podfile:
pod 'LDSwiftEventSource', '~> 3.3'repository·main·Indexed 43 days ago
https://github.com/launchdarkly/swift-eventsourceA cross-platform Swift implementation of the EventSource (Server-Sent Events) specification designed for high-performance streaming of events. Supports iOS 15.0+, watchOS 9.0+, tvOS 15.0+, and macOS 12.0+ using Swift 5.1+. Available via CocoaPods, Carthage, and Swift Package Manager.
To integrate LDSwiftEventSource into your Xcode project using CocoaPods, add the following line to your Podfile:
pod 'LDSwiftEventSource', '~> 3.3'LDSwiftEventSource provides two distinct products: LDSwiftEventSource (explicitly dynamic) and LDSwiftEventSourceStatic (explicitly static).
Swift Packages.+ button.https://github.com/LaunchDarkly/swift-eventsource.git as the repository URL.Add the package to your Package.swift dependencies and include the desired product in your target dependencies.
dependencies: [
.package(url: "https://github.com/LaunchDarkly/swift-eventsource.git", .upToNextMajor(from: "3.3.1"))
]To verify your SSE client implementation against the cross-platform SSE testing protocol, you can run the contract tests locally using make. This command automatically handles downloading the appropriate version of the test harness tool.
Ensure you are in the project root directory before executing the command.
make contract-testsTo integrate LDSwiftEventSource into your Xcode project using Carthage, add the following line to your Cartfile:
github "LaunchDarkly/swift-eventsource" ~> 3.3Before installing, ensure your project meets the following minimum requirements: