Skip to content

Commit 671347c

Browse files
baloorvagg
authored andcommitted
doc: fixup socket.remoteAddress
remoteAddress may be undefined under certain conditions Signed-off-by: Arthur Gautier <[email protected]> PR-URL: #4198 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent acef181 commit 671347c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/net.markdown

+2-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ Returns `socket`.
413413
### socket.remoteAddress
414414

415415
The string representation of the remote IP address. For example,
416-
`'74.125.127.100'` or `'2001:4860:a005::68'`.
416+
`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
417+
the socket is destroyed (for example, if the client disconnected).
417418

418419
### socket.remoteFamily
419420

0 commit comments

Comments
 (0)