SSEStream
Manages a Server-Sent Events (SSE) stream from a Horizon API endpoint. Provides automatic reconnection, cursor management, and event delivery.
This class handles:
Auto-reconnect with configurable timeout
Cursor tracking to resume from the last received event
Event filtering (ignoring "hello" and "byebye" messages)
Thread-safe lifecycle management
Proper resource cleanup
Parameters
T
The type of response objects expected from the stream