resolveSrv
external fun resolveSrv(hostname: String, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/SrvRecord>) -> Unit)(source)
Uses the DNS protocol to resolve service records (SRV
records) for the hostname
. The addresses
argument passed to the callback
function will be an array of objects with the following properties:
priority
weight
port
name
{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}
Content copied to clipboard
Since
v0.1.27
suspend external fun resolveSrv(hostname: String): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/SrvRecord>(source)