Skip to main content

Crate hyperlane_plugin_sse

Crate hyperlane_plugin_sse 

Source
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 SseHub and SseStream.
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-ID replay.
SsePlugin
Process-wide SsePlugin registry storing an SseConfig and shared SseHub.
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, and crate::SseStream operations.

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-ID resume.
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-Control directive for SSE streams.
SSE_CONTENT_TYPE
Default SSE Content-Type header value with UTF-8 charset.