Parses arbitary byte chunks into EventSource line buffers. Each line should be of the format "field: value" and ends with \r, \n, or \r\n.
getLines(
onLine: (line: Uint8Array, fieldLength: number, flush: boolean) => void): (arr: Uint8Array, flush: boolean
) => void| Name | Type | Description |
|---|---|---|
onLine* | (line: Uint8Array, fieldLength: number, flush?: boolean) => void | A function that will be called on each new EventSource line. |