From da38ea532be09de9a18ed1ebfb43bce40cf1b830 Mon Sep 17 00:00:00 2001 From: RunDay198 Date: Tue, 23 May 2023 17:06:59 +0400 Subject: [PATCH] doc: update socket.remote* properties documentation Fixes: https://github.com/nodejs/node/issues/48061 --- doc/api/net.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index 4309fdb626dcc7..341c4b3f904cd8 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1171,7 +1171,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` @@ -1181,7 +1182,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()`