PgPubSub.on() method
Sets 'connect' event handler
Signature:
on(event: 'connect', listener: typeof connect): this;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
'connect' |
|
|
listener |
typeof connect |
handler invoked when a PostgreSQL connection has been established. |
Returns:
this
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.