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 <info@bnoordhuis.nl>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Saba Kharanauli authored and Michaël Zasso committed 2023-05-30 12:24:29 +02:00
1 parent 750d3e8606
commit 39d8140227
1 file changed
+4 -2
+4 -2
View File
@@ -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()`