Agent Client Protocol - v2.12.0
    Preparing search index...

    Interface AcpConnection

    Active ACP connection returned by AgentApp.connect(...) and ClientApp.connect(...).

    Use this handle when you need a connection to stay open independently of a single connectWith(...) operation.

    interface AcpConnection {
        signal: AbortSignal;
        closed: Promise<void>;
        close(error?: unknown): void;
    }

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    AbortSignal that aborts when the connection closes.

    Unless close() closed the connection, notifications received before it closed can still reach their handlers after the signal aborts.

    closed: Promise<void>

    Promise that resolves when the connection closes.

    Unless close() closed the connection, notifications received before it closed can still reach their handlers after this resolves.

    • Closes the connection and rejects pending requests. Messages received but not yet dispatched are dropped. Does nothing once the connection is closed.

      Parameters

      • Optionalerror: unknown

      Returns void