Skip to content

Commit

Permalink
doc: update socket.remote* properties documentation
Browse files Browse the repository at this point in the history
Fixes: #48061
PR-URL: #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 MoLow committed Jul 6, 2023
1 parent 9aed868 commit 69205a2
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 @@ -1136,7 +1136,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 @@ -1146,7 +1147,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 69205a2

Please sign in to comment.