pg-listener API
    Preparing search index...

    Interface IListenMessage

    Notification message received from Postgres.

    interface IListenMessage {
        channel: string;
        length: number;
        payload: string;
        processId: number;
    }
    Index

    Properties

    channel: string

    Name of the channel that sent the notification.

    length: number

    Length of the notification payload, in bytes.

    Note: this is different from the number of characters in the payload, as the payload may contain binary data.

    payload: string

    Notification Payload: the actual data sent with the notification.

    processId: number

    PID of the Postgres process that sent the notification.