Skip to content

Commit

Permalink
doc: update socket.remote* properties documentation
Browse files Browse the repository at this point in the history
Fixes: nodejs#48061
PR-URL: nodejs#48139
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Basa198 authored and Ceres6 committed Aug 14, 2023
1 parent 3d51afe commit d8f2e5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -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()`

Expand Down

0 comments on commit d8f2e5d

Please sign in to comment.