class PushChannel
implements NotificationChannel
Since 0.1.0

PushChannel dispatches notifications through a PushTransport (e.g. FcmProvider).

Constructors

PushChannel(
name: string,
transport: PushTransport
)

Properties

readonly
name: string

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

Methods

send(notification: NotificationMessage): Promise<void>

Extracts to.token and optionally subject as title, then sends via PushTransport.

Usage

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