Skip to content

SudoSOS Back-end API / notifications/notifier / Notifier

Class: Notifier ​

Constructors ​

Constructor ​

ts
new Notifier(channels): Notifier;

Parameters ​

ParameterType
channelsNotificationChannel<any, any, any>[]

Returns ​

Notifier

Methods ​

notify() ​

ts
notify<P>(payload): Promise<void>;

Type Parameters ​

Type Parameter
P extends TemplateOptions

Parameters ​

ParameterType
payloadNotificationPayload<P>

Returns ​

Promise<void>


getInstance() ​

ts
static getInstance(): Notifier;

Returns ​

Notifier