mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
750d3e8606
commit
39d8140227
1 file changed
+4
-2
+4
-2
@@ -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()`
|
||||
|
||||
|
||||
Reference in new issue
Block a user