pg-rx-listen API
    Preparing search index...

    Interface IPgListenConfig

    Configuration for the PgListenConnection class.

    interface IPgListenConfig {
        pool: IPostgresPool;
        retryAll?: RetryOptions;
        retryInit?: RetryOptions;
    }
    Index

    Properties

    The PostgreSQL connection pool to use for listening.

    retryAll?: RetryOptions

    Retry 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
    };
    retryInit?: RetryOptions

    Retry 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
    };