MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / candidate_devtools_ports

Function candidate_devtools_ports

packages/server/src/devtools.rs:519–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517}
518
519async fn candidate_devtools_ports() -> Vec<u16> {
520 let mut ports = BTreeSet::new();
521 ports.extend(COMMON_METRO_PORTS.iter().copied());
522 ports.extend(COMMON_CHROME_INSPECTOR_PORTS.iter().copied());
523 ports.extend(discover_listening_devtools_ports().await);
524 ports.into_iter().collect()
525}
526
527async fn discover_listening_devtools_ports() -> Vec<u16> {
528 let output = match timeout(

Callers 1

Calls 1

Tested by

no test coverage detected