Skip to content

Commit

Permalink
doc: fixup socket.remoteAddress
Browse files Browse the repository at this point in the history
remoteAddress may be undefined under certain conditions

Signed-off-by: Arthur Gautier <baloo@gandi.net>
  • Loading branch information
baloo authored and Arthur Gautier committed Dec 8, 2015
1 parent b47d823 commit 0e2359a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/net.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ Returns `socket`.
### socket.remoteAddress

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

### socket.remoteFamily

Expand Down

0 comments on commit 0e2359a

Please sign in to comment.