SseParser
Defined in: sse.ts:33
Incremental SSE frame parser. Feed it decoded text; it yields complete
messages. Holds partial frames across chunk boundaries — a data: line
split mid-UTF-8-sequence or mid-JSON is the normal case on a real network,
not an edge case.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SseParser():
SseParser
Returns
Section titled “Returns”SseParser
Methods
Section titled “Methods”flush()
Section titled “flush()”flush():
SseMessage[]
Defined in: sse.ts:71
Flush a trailing frame that never got its blank line (server closed).
Returns
Section titled “Returns”push()
Section titled “push()”push(
chunk):SseMessage[]
Defined in: sse.ts:43
Feed a chunk of decoded text; returns every message it completed.
Parameters
Section titled “Parameters”string