doc: modify net.Server.listen arg list
PR-URL: https://github.com/nodejs/node/pull/20142 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
1f3fbd43b7
commit
3cb8e64e85
@ -192,7 +192,7 @@ Possible signatures:
|
||||
* [`server.listen(options[, callback])`][`server.listen(options)`]
|
||||
* [`server.listen(path[, backlog][, callback])`][`server.listen(path)`]
|
||||
for [IPC][] servers
|
||||
* [`server.listen([port][, host][, backlog][, callback])`][`server.listen(port, host)`]
|
||||
* [`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`]
|
||||
for TCP servers
|
||||
|
||||
This function is asynchronous. When the server starts listening, the
|
||||
@ -264,7 +264,7 @@ added: v0.11.14
|
||||
* Returns: {net.Server}
|
||||
|
||||
If `port` is specified, it behaves the same as
|
||||
[`server.listen([port][, hostname][, backlog][, callback])`][`server.listen(port, host)`].
|
||||
[`server.listen([[[port[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`].
|
||||
Otherwise, if `path` is specified, it behaves the same as
|
||||
[`server.listen(path[, backlog][, callback])`][`server.listen(path)`].
|
||||
If none of them is specified, an error will be thrown.
|
||||
|
Loading…
x
Reference in New Issue
Block a user