method SocketAddress.parse
#SocketAddress.parse(input: string): SocketAddress | undefined
Parameters #
#input: string
An input string containing an IP address and optional port,
e.g. 123.1.2.3:1234
or [1::1]:1234
.
Return Type #
SocketAddress | undefined
Returns a SocketAddress
if parsing was successful.
Otherwise returns undefined
.