Async client for receiving Server-Sent Events streams over HTTP
This library enables applications to connect to HTTP endpoints that provide
Server-Sent Events (SSE) and to listen for real-time event streams in an
asynchronous, non-blocking manner. It maintains a persistent connection to the
remote SSE server, automatically handling reconnections in cases of network
interruptions or dropped connections. Incoming event messages are parsed
according to the SSE protocol specification, making it possible to process
update notifications, messages, or status changes as soon as they are
published by the server. This is useful for consuming live data feeds from web
servers or public APIs, such as news updates or monitoring information. The
library provides tools for error handling, including exposing server response
bodies when a connection cannot be established or returns an unexpected status
code. Communication occurs over standard HTTP, and connections can be
established securely depending on the endpoint's configuration.