GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: document that server.address() can return null · nodejs/node@31b2cbb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • net.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Emitted when the server has been bound after calling [`server.listen()`][].
114114
added: v0.1.90
115115
-->
116116

117-
* Returns: {Object|string}
117+
* Returns: {Object|string|null}
118118

119119
Returns the bound `address`, the address `family` name, and `port` of the server
120120
as reported by the operating system if listening on an IP socket
@@ -138,7 +138,8 @@ server.listen(() => {
138138
});
139139
```
140140

141-
Don't call `server.address()` until the `'listening'` event has been emitted.
141+
`server.address()` returns `null` before the `'listening'` event has been
142+
emitted or after calling `server.close()`.
142143

143144
### `server.close([callback])`
144145
<!-- YAML

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.