launchdarkly_event_source_client library
launchdarkly_sse provides SSE streaming functionality.
Classes
- Event
- Base class for event source events.
- EventSourceLogger
- Simple logging interface for the event source client
- MessageEvent
- Represents a message that came across the SSE stream.
- NoOpLogger
- No-op logger implementation that does nothing
- OpenEvent
- Event emitted when the SSE client connects.
- PrintLogger
- Simple print-based logger for basic logging
- SSECapability
- Optional behaviors that an SSEClient implementation may or may not support. Callers query support with SSEClient.hasCapability and route around missing capabilities (for example, by switching to a query-parameter form of authentication when the transport cannot send custom request headers).
- SSEClient
- An SSEClient that works to maintain a SSE connection to a server.
- TestSseClient
- An SSE client to use for testing.
Enums
- LogLevel
- SseHttpMethod
- HTTP methods supported by the event source client.
Exceptions / Errors
- SseHttpError
- Reported on the event stream when the server responds with a non-200 HTTP status. Carries the status code and the response headers, which may hold service directives (e.g. protocol fallback instructions) even on error responses.