PgPubSub.once() method

Sets 'notify' event handler, which fired only one single time

Signature:

once(event: 'notify', listener: typeof notify): this;

Parameters

Parameter

Type

Description

event

'notify'

'notify' — this instance published a notification

listener

typeof notify

handler invoked when this instance published a notification. Fires at most once.

Returns:

this

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