We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e7c37b commit 452df69Copy full SHA for 452df69
doc/api/net.markdown
@@ -4,11 +4,16 @@ The `net` module provides you with an asynchronous network wrapper. It contains
4
methods for creating both servers and clients (called streams). You can include
5
this module with `require("net");`
6
7
-### net.createServer(connectionListener)
+### net.createServer([options], [connectionListener])
8
9
Creates a new TCP server. The `connectionListener` argument is
10
automatically set as a listener for the `'connection'` event.
11
12
+`options` is an object with the following defaults:
13
+
14
+ { allowHalfOpen: false
15
+ }
16
17
### net.createConnection(arguments...)
18
19
Construct a new socket object and opens a socket to the given location. When
0 commit comments