Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix duplication in net.createServer docs #24026

Closed
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
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