The PostgreSQL connection pool to use for listening.
Optional
retryRetry options for reconnection attempts, plus for the initial connection (if retryInit is not specified).
When not specified, internal retryDefault
is used, configured as follows:
const retryDefault: RetryOptions = {
retry: 5, // up to 5 retries
delay: s => 5 ** (s.index + 1) // Exponential delays: 5, 25, 125, 625, 3125 ms
};
Optional
retryRetry options for the initial connection only.
When not specified, retryAll is used, and if not available either,
then internal retryDefault
, which is configured as follows:
const retryDefault: RetryOptions = {
retry: 5, // up to 5 retries
delay: s => 5 ** (s.index + 1) // Exponential delays: 5, 25, 125, 625, 3125 ms
};
Configuration for the PgListenConnection class.