@sudoplatform/sudo-profiles

    Interface SudoSubscriber

    Subscriber for receiving notifications about new, updated or deleted Sudo.

    interface SudoSubscriber {
        connectionStatusChanged(state: ConnectionState): void;
        sudoChanged(changeType: ChangeType, sudo: Sudo): void;
    }
    Index

    Methods

    • Notifies the subscriber that the subscription connection state has changed. The subscriber won't be notified of Sudo changes until the connection status changes to [ConnectionState.CONNECTED]. The subscriber will stop receiving Sudo change notifications when the connection state changes to [ConnectionState.DISCONNECTED].

      Parameters

      Returns void

    • Notifies the subscriber of a new, updated or deleted Sudo.

      Parameters

      • changeType: ChangeType

        change type. Please refer to [ChangeType] enum.

      • sudo: Sudo

        new, updated or deleted Sudo.

      Returns void

    MMNEPVFCICPMFPCPTTAAATR