Skip to content

Commit 69205a2

Browse files
Basa198MoLow
authored andcommitted
doc: update socket.remote* properties documentation
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>
1 parent 9aed868 commit 69205a2

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
@@ -1136,7 +1136,8 @@ added: v0.11.14
11361136

11371137
* {string}
11381138

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

11411142
### `socket.remotePort`
11421143

@@ -1146,7 +1147,8 @@ added: v0.5.10
11461147

11471148
* {integer}
11481149

1149-
The numeric representation of the remote port. For example, `80` or `21`.
1150+
The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
1151+
the socket is destroyed (for example, if the client disconnected).
11501152

11511153
### `socket.resetAndDestroy()`
11521154

0 commit comments

Comments
 (0)