diff options
author | Ivan Filenko <ivan.filenko@protonmail.com> | 2018-11-02 00:15:48 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-12-03 21:31:59 +0300 |
commit | a7523072b8222825515ed39bdfaf995ec81aaf33 (patch) | |
tree | eb3f3e8f67ee5ed48901083b57770b4cbd5d4d57 /doc | |
parent | 13ca306d4a31b2df475a980a456a6149cf766044 (diff) |
doc: fix dublication in net.createServer() docs
PR-URL: https://github.com/nodejs/node/pull/24026
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/net.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index eb48ab8d00c..a8cd321dca9 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -886,6 +886,7 @@ added: v0.7.0 --> * `options` {Object} * `connectListener` {Function} + Alias to [`net.createConnection(options[, connectListener])`][`net.createConnection(options)`]. @@ -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 @@ -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 |