PgPubSub.once() method
Sets 'close' event handler, which fired only one single time
Signature:
once(event: 'close', listener: typeof close): this;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
'close' |
|
|
listener |
typeof close |
handler invoked when the connection was closed by close(), leaving it re-usable. 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.