electron-agent-bridge
    Preparing search index...

    A child session of a page's CDP connection as a transport of its own: commands carry the session id, and only its events are delivered (without the id), so collectors written for pages work unchanged.

    Implements

    Index
    • get detachedReason(): | "unknown"
      | "host-debugger"
      | "target-closed"
      | "crashed"
      | "closed"
      | undefined

      Why the transport is detached; undefined while attached.

      Returns "unknown" | "host-debugger" | "target-closed" | "crashed" | "closed" | undefined

    • The child went away (detached from its target).

      Parameters

      • reason: "unknown" | "host-debugger" | "target-closed" | "crashed" | "closed"

      Returns void

    • Parameters

      • listener: (
            reason:
                | "unknown"
                | "host-debugger"
                | "target-closed"
                | "crashed"
                | "closed",
        ) => void

      Returns Disposable

    post

    • post(method: string, params?: object, sessionId?: string): void

      Send a command without awaiting it. Required before a page's first navigation, where commands may not resolve until navigation starts (ADR-0002). Failures are swallowed.

      Parameters

      • method: string
      • Optionalparams: object
      • OptionalsessionId: string

      Returns void

    • A session id of its own (a grandchild's, flattened onto the same connection) goes as it is.

      Parameters

      • method: string
      • Optionalparams: object
      • OptionalsessionId: string

      Returns Promise<unknown>