hyperlane-plugin-sse 22.10.0

A Server-Sent Events (SSE) streaming and topic pub/sub plugin for the Hyperlane framework with Last-Event-ID replay, heartbeat, and CRLF-safe event framing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Errors returned by [`crate::SseHub`], [`crate::SseSubscription`], and [`crate::SseStream`] operations.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum SseError {
    /// Creating a new topic would exceed `SseConfig::max_topics`.
    TopicLimitReached,
    /// The underlying topic broadcast channel has closed.
    ChannelClosed,
    /// The subscriber lagged behind the broadcast ring by `u64` messages.
    Lagged(u64),
    /// Writing an SSE frame to the HTTP response stream failed.
    Transport(String),
}