lightgun-poc / lib/adb / adbReverse
Function: adbReverse()
adbReverse(
port,run?):object
Defined in: lib/adb.ts:25
Runs adb reverse so the phone's localhost:<port> reaches this PC. The mapping dies on cable replug / adb restart — start:adb re-runs it each time. Failure is reported, never thrown; the server starts anyway.
The port is validated and adb is invoked with an argument array (no shell), so nothing that arrives via the CLI can smuggle extra commands in.
Parameters
port
number
run?
AdbRun = runAdb
Returns
object
detail
detail:
string
ok
ok:
boolean