diff --git a/doc/api/net.md b/doc/api/net.md index 19bd73535f964e..0c671367dc0e84 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1136,7 +1136,8 @@ added: v0.11.14 * {string} -The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. +The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if +the socket is destroyed (for example, if the client disconnected). ### `socket.remotePort` @@ -1146,7 +1147,8 @@ added: v0.5.10 * {integer} -The numeric representation of the remote port. For example, `80` or `21`. +The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if +the socket is destroyed (for example, if the client disconnected). ### `socket.resetAndDestroy()`