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 649d201

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
doc: improve server.address() doc text
PR-URL: #7001 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent e2e85ce commit 649d201
Copy full SHA for 649d201

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Emitted when the server has been bound after calling `server.listen`.
3737

3838
### server.address()
3939

40-
Returns the bound address, the address family name and port of the server
40+
Returns the bound address, the address family name, and port of the server
4141
as reported by the operating system.
42-
Useful to find which port was assigned when giving getting an OS-assigned address.
43-
Returns an object with three properties, e.g.
42+
Useful to find which port was assigned when getting an OS-assigned address.
43+
Returns an object with `port`, `family`, and `address` properties:
4444
`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
4545

4646
Example:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.