plana 0.2.1

PLANA protocol foundation: the canonical JSON-RPC 2.0 wire layer (unix-socket / HTTP / WS bindings, typed method routing) merged with the generic protocol core (handshake, identity, RBAC, regions, health descriptors) — the base every plana-rpc-* and domain-profile crate builds on.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Server-Sent Events handler for JSON-RPC event streaming.
//!
//! Pairs with the browser-side SSE transport in the plana-rpc-client npm
//! package. Sends an immediate `:connected` comment and periodic `:heartbeat`
//! keep-alive frames to prevent proxy/nginx timeout.

/// SSE keep-alive interval in seconds.
pub const SSE_HEARTBEAT_INTERVAL_SECS: u64 = 25;

/// Initial SSE comment sent on connection.
pub const SSE_CONNECTED_COMMENT: &str = ":connected\n\n";

/// SSE heartbeat comment sent periodically.
pub const SSE_HEARTBEAT_COMMENT: &str = ":heartbeat\n\n";