Creates a PayloadStreamReader
event stream of FDv2 events
defines object processors for each object kind.
Optional_errorHandler: (errorKind: DataSourceErrorKind, message: string) => void
that will be called with parsing errors as they are encountered
Optional_logger: LDLogger
for logging
A FDv2 PayloadStreamReader can be used to parse payloads from a stream of FDv2 events. See PayloadProcessor for more details.