diff --git a/doc/api/net.md b/doc/api/net.md index 770398a7ef2bb5..de1f5b095ea40e 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -244,6 +244,17 @@ added: * Type {number} +### `SocketAddress.parse(input)` + + + +* `input` {string} An input string containing an IP address and optional port, + e.g. `123.1.2.3:1234` or `[1::1]:1234`. +* Returns: {net.SocketAddress} Returns a `SocketAddress` if parsing was successful. + Otherwise returns `undefined`. + ## Class: `net.Server`