Reference
cdp_connect
Connect only the exact app target on the authority-bound Metro and commit its signed initial-bundle handshake. Omitted port/platform/app values come from the session; conflicts refuse.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
metroPort | number | No | Must equal the authority-bound Metro port; omitted uses that exact port | ||
platform | string | No | Filter target by platform (e.g. “ios”, “android”). If already connected to a different platform, forces reconnection to the correct target. | ||
targetId | string | No | Advisory; refuses only if it conflicts with the bound target | ||
bundleId | string | No | App bundle id to match against target.description (e.g. “com.myapp.dev”). Filters out zombie Expo Go host pages when the real app target is present. B111/D635. | ||
force | boolean | No | false | Force disconnect and reconnect even if already connected. Use to switch targets or recover from stale connections. |
cdp_connect()