launchdarkly / swift-eventsource

Server-sent events (SSE) client implementation in Swift for iOS, macOS, tvOS, and watchOS
https://launchdarkly.github.io/swift-eventsource/
Other
188 stars 34 forks source link

Support setting headers when connecting and reconnecting #10

Closed apache-hb closed 3 years ago

apache-hb commented 3 years ago

Requirements

Describe the solution you've provided

Added a closure to the config that is invoked when configuring headers at connect and reconnect events.

Additional context

This is required to support lazily setting headers in our swift sdk.