Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
server.address()
1 parent e2e85ce commit 649d201Copy full SHA for 649d201
doc/api/net.md
@@ -37,10 +37,10 @@ Emitted when the server has been bound after calling `server.listen`.
37
38
### server.address()
39
40
-Returns the bound address, the address family name and port of the server
+Returns the bound address, the address family name, and port of the server
41
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.
+Useful to find which port was assigned when getting an OS-assigned address.
+Returns an object with `port`, `family`, and `address` properties:
44
`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
45
46
Example:
0 commit comments