method NotificationService.prototype.send
NotificationService.prototype.send(notification: NotificationMessage): Promise<void>

Dispatches a notification on every requested channel.

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<void>

Throws

AggregateError

If one or more channels fail — each member names its channel ("channel '<name>' failed") and carries the original error on cause, so the failure is attributable without rendering .errors.

Usage

import { NotificationService } from "notification-plugin/src/index.ts";