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

/// Zero-allocation hash map used inside each SSE topic shard.
pub(crate) type SseShardMap = HashMap<String, Arc<TopicState>, BuildHasherDefault<FxHasher>>;

/// Replay buffer storing sequence-ordered shared SSE events.
pub(crate) type SseReplayQueue = VecDeque<(u64, Arc<SharedSseEvent>)>;