PgPubSub.once() method
Sets 'message' event handler, which fired only one single time
Signature:
once(event: 'message', listener: typeof message): this;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
'message' |
|
|
listener |
typeof message |
handler invoked when a notification arrived on any listened channel. 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.