|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Layer 6 (Presentation) – Server-Sent Events connection pool. More...
#include "protocore_config.h"Go to the source code of this file.
Layer 6 (Presentation) – Server-Sent Events connection pool.
SSE (WHATWG HTML Living Standard, Server-sent events; the W3C EventSource API) is a long-lived HTTP GET response with Content-Type: text/event-stream. After the initial headers the connection stays open indefinitely; the server pushes newline-delimited event records at any time.
Event record format (WHATWG HTML, Server-sent events)
Each SseConn occupies one TCP slot from conn_pool[] for the lifetime of the subscription. The total number of simultaneous SSE connections is capped at MAX_SSE_CONNS.
Definition in file sse.h.