SudoSOS Back-end API / notifications/notifier / Notifier
Class: Notifier ​
Constructors ​
Constructor ​
ts
new Notifier(channels): Notifier;Parameters ​
| Parameter | Type |
|---|---|
channels | NotificationChannel<any, any, any>[] |
Returns ​
Notifier
Methods ​
notify() ​
ts
notify<P>(payload): Promise<void>;Type Parameters ​
| Type Parameter |
|---|
P extends TemplateOptions |
Parameters ​
| Parameter | Type |
|---|---|
payload | NotificationPayload<P> |
Returns ​
Promise<void>
getInstance() ​
ts
static getInstance(): Notifier;Returns ​
Notifier