PgPubSub.once() method

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

Signature:

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

Parameters

Parameter

Type

Description

event

'unlisten'

'unlisten' — this process stopped listening one or more channels

listener

typeof unlisten

handler invoked when this process stopped listening one or more channels. 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.