From 39d8140227be12ae34864ed2a2dfd45fb2d652cd Mon Sep 17 00:00:00 2001 From: Saba Kharanauli <114554280+runday198@users.noreply.github.com> Date: Thu, 25 May 2023 17:19:10 +0400 Subject: [PATCH] doc: update socket.remote* properties documentation Fixes: https://github.com/nodejs/node/issues/48061 PR-URL: https://github.com/nodejs/node/pull/48139 Reviewed-By: Ben Noordhuis Reviewed-By: Paolo Insogna Reviewed-By: Rich Trott --- 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 30aa7f6ed97..90306354c61 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()`