notify() function

'notify' event occurs each time new message has been published to a particular channel. Occurs right after database NOTIFY command succeeded.

Signature:

export declare function notify(chan: string, payload: AnyJson): void;

Parameters

Parameter

Type

Description

chan

string

channel to which notification was sent

payload

AnyJson

notification message payload

Returns:

void

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.