Was this page helpful?
AddressResolver¶
AddressResolver(options)
Utility class that resolves host names into addresses.
Constructor¶
new AddressResolver(options)
Creates a new instance of the resolver.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Source
Methods¶
getIp()
Returns resolved ips in a round-robin fashion.
Source
(async) init()
Resolves the addresses for the host name.
Source
(async) refresh()
Tries to resolve the addresses for the host name.
Source