@runloop/agent-axon-client
    Preparing search index...

    Interface Transport

    Abstract transport interface matching the Python SDK's Transport ABC.

    interface Transport {
        abortStream(): void;
        close(): Promise<void>;
        connect(): Promise<void>;
        isReady(): boolean;
        readMessages(): AsyncIterable<WireData>;
        reconnect(): Promise<void>;
        write(data: string): Promise<void>;
    }

    Implemented by

    Index

    Claude SDK

    • Aborts the SSE stream without marking the transport as permanently closed. The read loop will exit, but write may still work.

      Returns void

    • Permanently closes the transport. After calling, isReady returns false and no further reads or writes are possible.

      Returns Promise<void>

    • Opens the underlying connection (e.g. subscribes to the SSE stream).

      Returns Promise<void>

    • Returns whether the transport is connected and not closed.

      Returns boolean

      true if the transport can send and receive messages.

    • Returns an async iterable of parsed wire messages from the agent. Only agent-origin messages are yielded; echoed user events are filtered.

      Returns AsyncIterable<WireData>

      If called before connect.

    • Aborts the current SSE stream and re-subscribes. The transport remains connected — only the read half is recycled.

      Returns Promise<void>

    • Publishes a serialized JSON message to the remote agent.

      Parameters

      • data: string

        The JSON string to send.

      Returns Promise<void>