Skip to content

Commit

Permalink
doc: fix dublication in net.createServer() docs
Browse files Browse the repository at this point in the history
PR-URL: #24026
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
prog1dev authored and MylesBorins committed Dec 3, 2018
1 parent 13ca306 commit a752307
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ added: v0.7.0
-->
* `options` {Object}
* `connectListener` {Function}

Alias to
[`net.createConnection(options[, connectListener])`][`net.createConnection(options)`].

Expand Down Expand Up @@ -1028,10 +1029,6 @@ then returns the `net.Socket` that starts the connection.
<!-- YAML
added: v0.5.0
-->
* `options` {Object}
* `connectionListener` {Function}

Creates a new TCP or [IPC][] server.

* `options` {Object}
* `allowHalfOpen` {boolean} Indicates whether half-opened TCP
Expand All @@ -1042,6 +1039,8 @@ Creates a new TCP or [IPC][] server.
[`'connection'`][] event.
* Returns: {net.Server}

Creates a new TCP or [IPC][] server.

If `allowHalfOpen` is set to `true`, when the other end of the socket
sends a FIN packet, the server will only send a FIN packet back when
[`socket.end()`][] is explicitly called, until then the connection is
Expand Down

0 comments on commit a752307

Please sign in to comment.