Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a66d877

Browse filesBrowse files
prog1devMylesBorins
authored andcommitted
doc: fix dublication in net.createServer() docs
PR-URL: #24026 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 435e7b4 commit a66d877
Copy full SHA for a66d877

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+3-4Lines changed: 3 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ added: v0.7.0
886886
-->
887887
* `options` {Object}
888888
* `connectListener` {Function}
889+
889890
Alias to
890891
[`net.createConnection(options[, connectListener])`][`net.createConnection(options)`].
891892

@@ -1028,10 +1029,6 @@ then returns the `net.Socket` that starts the connection.
10281029
<!-- YAML
10291030
added: v0.5.0
10301031
-->
1031-
* `options` {Object}
1032-
* `connectionListener` {Function}
1033-
1034-
Creates a new TCP or [IPC][] server.
10351032

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

1042+
Creates a new TCP or [IPC][] server.
1043+
10451044
If `allowHalfOpen` is set to `true`, when the other end of the socket
10461045
sends a FIN packet, the server will only send a FIN packet back when
10471046
[`socket.end()`][] is explicitly called, until then the connection is

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.