hyperlane-plugin-sse 23.2.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
use super::*;

/// Global initialized [`SsePlugin`] instance.
pub(crate) static SSE_PLUGIN: OnceLock<SsePlugin> = OnceLock::new();

thread_local! {
    /// Worker-local pool of reusable SSE event coalescing buffers avoiding idle connection retention.
    pub(crate) static SSE_COALESCE_BUF_POOL: RefCell<Vec<Vec<u8>>> = const { RefCell::new(Vec::new()) };
}