| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,10 +37,10 @@ Emitted when the server has been bound after calling `server.listen`. | |||
| 37 | 37 | ||
| 38 | 38 | ### server.address() | |
| 39 | 39 | ||
| 40 | - Returns the bound address, the address family name and port of the server | ||
| 40 | + Returns the bound address, the address family name, and port of the server | ||
| 41 | 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. | ||
| 42 | + Useful to find which port was assigned when getting an OS-assigned address. | ||
| 43 | + Returns an object with `port`, `family`, and `address` properties: | ||
| 44 | 44 | `{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` | |
| 45 | 45 | ||
| 46 | 46 | Example: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments