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.

Hierarchy

  • PayloadReader

Constructors

  • Creates a PayloadReader

    Parameters

    • eventStream: EventStream

      event stream of FDv2 events

    • _objProcessors: ObjProcessors

      defines object processors for each object kind.

    • Optional _errorHandler: ((errorKind, message) => void)

      that will be called with errors as they are encountered

      Optional
        • (errorKind, message): void
        • Parameters

          Returns void

    • Optional _logger: LDLogger

      for logging

      Optional

    Returns PayloadReader

Properties

_attachHandler: any
_errorHandler?: any
_listeners: any
_logger?: any
_objProcessors: any
_processDeleteObject: any
_processError: any
_processGoodbye: any
_processObj: any
_processPayloadTransferred: any
_processPutObject: any
_processServerIntent: any
_resetState: any
_tempBasis?: any
_tempId?: any
_tempUpdates: any

Methods

  • Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc