diff --git a/doc/api/net.md b/doc/api/net.md index 72d8d47fd4296f..0f22537a9bcc40 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`