Optional
onCallback 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.
Optional
name: stringname
: The subscription name
, if set during SubEvent.subscribe call.
Optional
onNotification 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.
Optional
scheduleEvent-emitting schedule. Default is sync
.
Options to be used with method SubEvent.emit.