- Preparing search index...
- The search index is not available
@matrixai/ws
- resolveHost(host: string, resolveHostname: ((hostname: string) => string | PromiseLike<string>)): Promise<[Host, "udp4" | "udp6"]>
-
Parameters
-
host: string
-
resolveHostname: ((hostname: string) => string | PromiseLike<string>)
-
- (hostname: string): string | PromiseLike<string>
-
Returns string | PromiseLike<string>
Returns Promise<[Host, "udp4" | "udp6"]>
This will resolve a Host or Hostname to Host and
udp4
orudp6
. TheresolveHostname
can be overridden.