Expand description
hyperlane-plugin-sse
High-concurrency Server-Sent Events (SSE) framing, 64-way sharded topic
pub/sub fan-out, bounded Last-Event-ID replay, and zero-allocation
streaming heartbeats for Hyperlane.
Structs§
- SseConfig
- Configuration for
SseHubandSseStream. - SseEvent
- One Server-Sent Event frame with optional id, event type, retry hint, comment, and data payload.
- SseHub
- Thread-safe sharded multi-topic Server-Sent Events pub/sub hub with
Last-Event-IDreplay. - SsePlugin
- Process-wide
SsePluginregistry storing anSseConfigand sharedSseHub. - SseStream
- Helper for configuring SSE response headers and streaming events over a Hyperlane
Context. - SseSubscription
- Active subscriber handle returned by
SseHub::subscribe.
Enums§
- SseError
- Errors returned by
crate::SseHub,crate::SseSubscription, andcrate::SseStreamoperations.
Constants§
- DEFAULT_
SSE_ CHANNEL_ CAPACITY - Default broadcast channel capacity per topic.
- DEFAULT_
SSE_ HEARTBEAT_ MS - Default heartbeat interval in milliseconds.
- DEFAULT_
SSE_ MAX_ TOPICS - Default maximum number of active topics allowed in one
SseHub. - DEFAULT_
SSE_ REPLAY_ CAPACITY - Default bounded replay history retained per topic for
Last-Event-IDresume. - DEFAULT_
SSE_ RETRY_ MS - Default client reconnect retry hint in milliseconds.
- SSE_
ACCEL_ BUFFERING_ HEADER - Reverse-proxy buffering disable header name for SSE streams.
- SSE_
ACCEL_ BUFFERING_ VALUE - Reverse-proxy buffering disable header value for SSE streams.
- SSE_
CACHE_ CONTROL - Default
Cache-Controldirective for SSE streams. - SSE_
CONTENT_ TYPE - Default SSE
Content-Typeheader value with UTF-8 charset.