PgPubSub.unlisten() method
Stops listening of the given channel, and, if singleListener option is set to true - will release an acquired lock (if it was settled).
Signature:
unlisten(channel: string): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
channel |
string |
channel name to unlisten |
Returns:
Promise<void>
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.