PgPubSub.once() method
Sets 'reconnect' event handler, which fired only one single time
Signature:
once(event: 'reconnect', listener: typeof reconnect): this;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
'reconnect' |
|
|
listener |
typeof reconnect |
handler invoked when a reconnect attempt was made, with the attempt number. 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.