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

Extracts to.phone and sends via SmsTransport.

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<void>

Throws

Error

If to.phone is absent or transport rejects

Usage

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