|
@ -173,6 +173,9 @@ server.listen({ |
|
|
}); |
|
|
}); |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
*Note*: The `server.listen()` method may be called multiple times. Each |
|
|
|
|
|
subsequent call will *re-open* the server using the provided options. |
|
|
|
|
|
|
|
|
### server.listen(path[, backlog][, callback]) |
|
|
### server.listen(path[, backlog][, callback]) |
|
|
<!-- YAML |
|
|
<!-- YAML |
|
|
added: v0.1.90 |
|
|
added: v0.1.90 |
|
@ -210,6 +213,9 @@ double-backslashes, such as: |
|
|
The parameter `backlog` behaves the same as in |
|
|
The parameter `backlog` behaves the same as in |
|
|
[`server.listen([port][, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`]. |
|
|
[`server.listen([port][, hostname][, backlog][, callback])`][`server.listen(port, host, backlog, callback)`]. |
|
|
|
|
|
|
|
|
|
|
|
*Note*: The `server.listen()` method may be called multiple times. Each |
|
|
|
|
|
subsequent call will *re-open* the server using the provided options. |
|
|
|
|
|
|
|
|
### server.listen([port][, hostname][, backlog][, callback]) |
|
|
### server.listen([port][, hostname][, backlog][, callback]) |
|
|
<!-- YAML |
|
|
<!-- YAML |
|
|
added: v0.1.90 |
|
|
added: v0.1.90 |
|
@ -249,6 +255,9 @@ server.on('error', (e) => { |
|
|
|
|
|
|
|
|
(Note: All sockets in Node.js are set `SO_REUSEADDR`.) |
|
|
(Note: All sockets in Node.js are set `SO_REUSEADDR`.) |
|
|
|
|
|
|
|
|
|
|
|
*Note*: The `server.listen()` method may be called multiple times. Each |
|
|
|
|
|
subsequent call will *re-open* the server using the provided options. |
|
|
|
|
|
|
|
|
### server.listening |
|
|
### server.listening |
|
|
<!-- YAML |
|
|
<!-- YAML |
|
|
added: v5.7.0 |
|
|
added: v5.7.0 |
|
|