Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[, hostname[, backlog]]][, callback])`][`server.listen(port, host)`]
* [`server.listen([port[, host[, backlog]]][, callback])`][`server.listen(port, host)`]
for TCP servers

This function is asynchronous. When the server starts listening, the
Expand Down Expand Up @@ -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[, host[, 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.
Expand Down Expand Up @@ -296,7 +296,7 @@ added: v0.1.90

Start a [IPC][] server listening for connections on the given `path`.

#### server.listen([port][, host][, backlog][, callback])
#### server.listen([port[, host[, backlog]]][, callback])
<!-- YAML
added: v0.1.90
-->
Expand Down