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

    Interface IDisconnectParams

    Parameters for the PgListenConnection.onDisconnect event.

    interface IDisconnectParams {
        auto: boolean;
        client: IPoolClient;
        error?: any;
    }
    Index

    Properties

    Properties

    auto: boolean

    Automatic-disconnection flag, when no more subscribers left. When false, the disconnection is due to a connectivity issue.

    client: IPoolClient

    Instance of the client that got disconnected.

    error?: any

    Error that caused the disconnection. It is only set when auto is false.