Creates a PayloadProcessor
defines object processors for each object kind.
Optional
_errorHandler: ((errorKind, message) => void)that will be called with parsing errors as they are encountered
Optional
Optional
_logger: LDLoggerfor logging
Optional
Private
Optional
Readonly
_errorthat will be called with parsing errors as they are encountered
Private
_listenersPrivate
Optional
Readonly
_loggerfor logging
Private
Readonly
_objdefines object processors for each object kind.
Private
_tempPrivate
Optional
_tempPrivate
_tempPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_processPrivate
_resetPrivate
_resetPrivate
_resetGives the PayloadProcessor a series of events that it will statefully, incrementally process. This may lead to listeners being invoked as necessary.
to be processed (can be a single element)
Generated using TypeDoc
A FDv2 PayloadProcessor 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 processor will continue to operate.