lightgun-poc / lib/qr / phonePageUrl
Function: phonePageUrl()
phonePageUrl(
pageUrl,addrs,httpPort,key?):string|null
Defined in: lib/qr.ts:23
The URL the QR encodes: WiFi-flagged interfaces first (that is the network the phone shares), capped at three hosts to keep the QR scannable in an 80-column terminal. Null when there is no LAN address to offer. The session key rides the same fragment — scanning is what hands the phone its credential.
Parameters
pageUrl
string
addrs
httpPort
number
key?
string | null
Returns
string | null