OptionalonCallback for catching all unhandled errors from subscribers, from both synchronous and asynchronous subscription functions.
(err: any, name?: string) => void;
err: The error that was thrown or rejected.
Optionalname: stringname: The subscription name, if set during SubEvent.subscribe call.
OptionalonNotification callback of when the last recipient has received the data. Note that asynchronous subscribers may still be processing the data at this point.
(count: number) => void;
count: Total number of subscribers that have received the data.
OptionalscheduleEvent-emitting schedule. Default is sync.
Options to be used with method SubEvent.emit.