SseParser class final

Stateful incremental parser: feed it raw string chunks, receive fully assembled SseEvents.

Handles \r\n, \n and lone \r line endings, : comment lines, and multi-line data: fields (joined with \n).

Constructors

SseParser()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChunk(String chunk) → List<SseEvent>
Feeds a raw chunk and returns every complete event it terminated.
flush() → List<SseEvent>
Flushes any buffered partial frame (call once at stream end).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited