C
net.SocketAddress
History
Added in: v15.14.0, v14.18.0
v15.14.0, v14.18.0
Introduced in: v0.10.0
v0.10.0
new net.SocketAddress(options?): net.SocketAddress
Attributes
Type:
stringType:
stringEither
'ipv4' or 'ipv6'.Type:
numberType:
numberSocketAddress.parse(input): net.SocketAddress
Attributes
input:
stringAn input string containing an IP address and optional port,
e.g.
123.1.2.3:1234 or [1::1]:1234.Returns:
net.SocketAddressReturns a
SocketAddress if parsing was successful.
Otherwise returns undefined.