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.
A function that will be called on each new EventSource line.
Optional
A function that should be called for each incoming byte chunk.
Generated using TypeDoc
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.