We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfe7b34 commit 13487c4Copy full SHA for 13487c4
doc/api/net.md
@@ -99,11 +99,14 @@ added: v0.1.90
99
-->
100
101
Returns the bound address, the address family name, and port of the server
102
-as reported by the operating system.
+as reported by the operating system if listening on an IP socket.
103
Useful to find which port was assigned when getting an OS-assigned address.
104
Returns an object with `port`, `family`, and `address` properties:
105
`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`
106
107
+For a server listening on a pipe or UNIX domain socket, the name is returned
108
+as a string.
109
+
110
Example:
111
112
```js
0 commit comments