The authenticated agent interface.

interface IAuthAgent {
    type: Agent;
    getId(): string;
    onConfigurationChange(callback): Unsubscribe;
    setReportCapacity(reportCapacity): Unsubscribe;
}

Hierarchy (view full)

Properties

type: Agent

The type of the node.

Methods

  • Get the ID of the node.

    Returns string

    The ID of the node.

  • Subscribe to when the agent configuration changes.

    Parameters

    • callback: (() => Promise<void>)

      The callback to invoke when the agent configuration changes.

    Returns Unsubscribe

    The unsubscribe function.

Generated using TypeDoc