We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d743783 commit c01a2d5Copy full SHA for c01a2d5
doc/api/net.md
@@ -58,11 +58,14 @@ added: v0.1.90
58
-->
59
60
Returns the bound address, the address family name, and port of the server
61
-as reported by the operating system.
+as reported by the operating system if listening on an IP socket.
62
Useful to find which port was assigned when getting an OS-assigned address.
63
Returns an object with `port`, `family`, and `address` properties:
64
`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
65
66
+For a server listening on a pipe or UNIX domain socket, the name is returned
67
+as a string.
68
+
69
Example:
70
71
```js
0 commit comments