-
- All Implemented Interfaces:
public final class EventParserParses & Dispatches Server-Sent Events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEventParser.EventInfopublic classEventParser.Companion
-
Constructor Summary
Constructors Constructor Description EventParser()
-
Method Summary
Modifier and Type Method Description final Unitprocess(Buffer data, Function1<EventParser.EventInfo, Unit> dispatcher)Push mode processing. -
-
Method Detail
-
process
final Unit process(Buffer data, Function1<EventParser.EventInfo, Unit> dispatcher)
Push mode processing.
Parses complete events that have been made available up to the end of the provided data; saving any unprocessed data until the next invocation.
- Parameters:
data- Latest data to processdispatcher- Handler for parsed events.
-
-
-
-