process

fun process(data: Buffer, dispatcher: (EventParser.EventInfo) -> Unit)

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 process

dispatcher

Handler for parsed events.