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.
1 parent cede0cb commit 31b2cbbCopy full SHA for 31b2cbb
doc/api/net.md
@@ -114,7 +114,7 @@ Emitted when the server has been bound after calling [`server.listen()`][].
114
added: v0.1.90
115
-->
116
117
-* Returns: {Object|string}
+* Returns: {Object|string|null}
118
119
Returns the bound `address`, the address `family` name, and `port` of the server
120
as reported by the operating system if listening on an IP socket
@@ -138,7 +138,8 @@ server.listen(() => {
138
});
139
```
140
141
-Don't call `server.address()` until the `'listening'` event has been emitted.
+`server.address()` returns `null` before the `'listening'` event has been
142
+emitted or after calling `server.close()`.
143
144
### `server.close([callback])`
145
<!-- YAML
0 commit comments