ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
sse.h File Reference

Layer 6 (Presentation) – Server-Sent Events connection pool. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

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)

[event: <name>\n]
[id: <id>\n]
data: <payload>\n
\n

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.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file sse.h.