MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / tryADBReverse

Function tryADBReverse

app/utils/adb.js:7–10  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

5const reverse = (device, port) => client.reverse(device, `tcp:${port}`, `tcp:${port}`)
6
7export const tryADBReverse = async (port) => {
8 const devices = await client.listDevices().filter((device) => device.type === 'device')
9 return Promise.all(devices.map((device) => reverse(device.id, port)))
10}

Callers 3

index.jsFile · 0.90
connectToDebuggerProxyFunction · 0.90
ReactInspectorClass · 0.90

Calls 1

reverseFunction · 0.85

Tested by

no test coverage detected