Creates a PayloadReader
event stream of FDv2 events
defines object processors for each object kind.
Optional
_errorHandler: ((errorKind, message) => void)that will be called with errors as they are encountered
Optional
Optional
_logger: LDLoggerfor logging
Optional
Private
Optional
Readonly
_errorthat will be called with errors as they are encountered
Private
_listenersPrivate
Optional
Readonly
_loggerfor logging
Private
Readonly
_objdefines object processors for each object kind.
Private
Optional
_tempPrivate
Optional
_tempPrivate
_tempPrivate
_attachPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_resetGenerated using TypeDoc
A FDv2 PayloadReader can be used to parse payloads from a stream of FDv2 events. It will send payloads to the PayloadListeners as the payloads are received. Invalid series of events may be dropped silently, but the payload reader will continue to operate.