sse_parser 0.1.0
sse_parser: ^0.1.0 copied to clipboard
A minimal, dependency-free, spec-compliant Server-Sent Events (SSE) parser for Dart and Flutter, with push and stream APIs. Built for LLM token streaming.
Changelog #
0.1.0 #
- Initial release.
SseParser: push-based, spec-compliant SSE core (feed/close/reset).SseTransformer+Stream<String>.parseSse()/Stream<List<int>>.parseSse().- WHATWG conformance: BOM strip,
\n/\r/\r\n(incl. CRLF split across chunks), comment lines, one-space field-value strip, colon-less fields, multi-linedatajoin, persistent last-event-id with NUL check, ASCII-digitretry, dispatch only on a blank line afterdata.