interface EarlyChrome
extends ChromeHandle

A ChromeHandle plus the CDP endpoint, resolved once Chrome is listening.

// Defined, not invoked: resolved by the prelaunch once Chrome prints its CDP URL on stderr.
function connectTarget(chrome: EarlyChrome) {
  return chrome.cdpEndpoint; // 'ws://127.0.0.1:<port>/devtools/browser/<id>'
}

Properties

The ws:// URL exposed by Chrome's CDP remote debugging endpoint.

Usage

import { type EarlyChrome } from "lib/types.ts";