class SmsChannel
implements NotificationChannel
Since 0.1.0

SmsChannel dispatches notifications through an SmsTransport (e.g. TwilioProvider).

Constructors

SmsChannel(
name: string,
transport: SmsTransport
)

Properties

readonly
name: string

Channel dispatch name (e.g. 'email', 'sms').

Methods

send(notification: NotificationMessage): Promise<void>

Extracts to.phone and sends via SmsTransport.

Usage

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