ResolveSrv
[<Interface>]
type ResolveSrv =
abstract member Invoke (hostname: string, callback: Callback) : unit
abstract member __promisify__ (hostname: string) : Promise<SrvRecord array>| Assembly | Xantham.Fable.Node |
Declared inside
Callback |
Methods
abstract member Invoke (hostname: string, callback: Callback) : unit
abstract member Invoke (hostname: string, callback: Callback) : unitUses 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:
priorityweightportname
{
priority: 10,
weight: 5,
port: 21223,
name: 'service.example.com'
}
@since v0.1.27
abstract member __promisify__ (hostname: string) : Promise<SrvRecord array>