Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 671347c

Browse filesBrowse files
baloorvagg
authored andcommitted
doc: fixup socket.remoteAddress
remoteAddress may be undefined under certain conditions Signed-off-by: Arthur Gautier <baloo@gandi.net> PR-URL: #4198 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent acef181 commit 671347c
Copy full SHA for 671347c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/net.markdown‎

Copy file name to clipboardExpand all lines: doc/api/net.markdown
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.