- Preparing search index...
- The search index is not available
eventstream
- createParser(): ((data: string, callback: ((event: IEvent) => void)) => void)
-
Returns ((data: string, callback: ((event: IEvent) => void)) => void)
-
- (data: string, callback: ((event: IEvent) => void)): void
-
Parameters
-
data: string
-
callback: ((event: IEvent) => void)
-
- (event: IEvent): void
-
Returns void
Returns void
Build a callable parser (agnostic usage) manage his internal state for successive chunks call.
call it with data chunk string, will call back for each parsed event as IEvent object
Returns
a function which take a chunk string as first argument and a callback as second argument
Example