PgPubSub.listen() method

Starts listening given channel. If singleListener option is set to true, it guarantees that only one process would be able to listen this channel at a time.

Signature:

listen(channel: string): Promise<void>;

Parameters

Parameter

Type

Description

channel

string

channel name to listen

Returns:

Promise<void>

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