Function resolveHost

  • This will resolve a Host or Hostname to Host and udp4 or udp6. The resolveHostname can be overridden.

    Parameters

    • host: string
    • resolveHostname: ((hostname) => string | PromiseLike<string>)
        • (hostname): string | PromiseLike<string>
        • Parameters

          • hostname: string

          Returns string | PromiseLike<string>

    Returns Promise<[Host, "udp4" | "udp6"]>

Generated using TypeDoc