ReadonlyaddressEither 'ipv4' or 'ipv6'.
ReadonlyfamilyEither 'ipv4' or 'ipv6'.
ReadonlyflowlabelReadonlyportStaticparseAn input string containing an IP address and optional port,
e.g. 123.1.2.3:1234 or [1::1]:1234.
Returns a SocketAddress if parsing was successful.
Otherwise returns undefined.
Since
v15.14.0, v14.18.0