Parses line buffers into EventSourceMessages.
getMessages(
onMessage: (msg: EventSourceMessage) => void, onId: (id: string) => void, onRetry: (retry: number) => void): (line: Uint8Array, fieldLength: number, flush: boolean
) => void| Name | Type | Description |
|---|---|---|
onMessage | (msg: EventSourceMessage) => void | A function that will be called on each message. |
onId | (id: string) => void | A function that will be called on each |
onRetry | (retry: number) => void | A function that will be called on each |