method PostgresConnector.notify
PostgresConnector.notify(
channel: string,
payload: string
): Task<void, ListenFailed>

Publish a notification to a channel.

Examples

Example 1

await connector.notify('orders', JSON.stringify(order)).run()

Parameters

channel: string
payload: string

Return Type

Task<void, ListenFailed>

Usage

import { type PostgresConnector } from ".";