PgPubSubOptions interface
Options accepted as option argument of PgPubSub constructor. It extends pg.ClientConfig options, mostly because it is used to construct PostgreSQL database connection, adding more properties required to configure PgPubSub objects behavior.
Signature:
export interface PgPubSubOptions extends ClientConfig
Extends: ClientConfig
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
number |
Time interval in milliseconds before By default is set to | ||
|
boolean |
If set to true, all instances become listeners but only instance is an executor which still implements inter-process locking mechanism. | ||
|
boolean |
If set to true, self emitted messages (those which were sent using | ||
|
boolean |
If set to true, the package registers SIGINT/SIGTERM/SIGABRT handlers performing graceful locks release and process exit. Default is false: a library must not take over process lifecycle unless asked to. | ||
|
Client |
(Optional) Existing PostgreSQL client connection (optional). Can be passed if there is a need to re-use existing db connection from external code. Otherwise it is required to bypass correct options to instantiate new | ||
|
number |
Specifies delay in milliseconds between re-connection retries | ||
|
number |
Specifies maximum number of re-connection retries to process, before connection would be treated as broken (disconnected). By default is set to infinite number of retries. | ||
|
boolean |
Boolean flag, which turns off/on single listener mode. By default is set to true, so instantiated PgPubSub connections will act using inter-process locking mechanism. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.