Skip to content

Commit 39d8140

Browse files
Basa198targos
authored andcommitted
doc: update socket.remote* properties documentation
Fixes: #48061 PR-URL: #48139 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 750d3e8 commit 39d8140

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/api/net.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,8 @@ added: v0.11.14
11711171

11721172
* {string}
11731173

1174-
The string representation of the remote IP family. `'IPv4'` or `'IPv6'`.
1174+
The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
1175+
the socket is destroyed (for example, if the client disconnected).
11751176

11761177
### `socket.remotePort`
11771178

@@ -1181,7 +1182,8 @@ added: v0.5.10
11811182

11821183
* {integer}
11831184

1184-
The numeric representation of the remote port. For example, `80` or `21`.
1185+
The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
1186+
the socket is destroyed (for example, if the client disconnected).
11851187

11861188
### `socket.resetAndDestroy()`
11871189

0 commit comments

Comments
 (0)