Skip to content

Commit 452df69

Browse files
koichikry
authored andcommitted
Correct net.createServer() API docs
1 parent 4e7c37b commit 452df69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/api/net.markdown

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ The `net` module provides you with an asynchronous network wrapper. It contains
44
methods for creating both servers and clients (called streams). You can include
55
this module with `require("net");`
66

7-
### net.createServer(connectionListener)
7+
### net.createServer([options], [connectionListener])
88

99
Creates a new TCP server. The `connectionListener` argument is
1010
automatically set as a listener for the `'connection'` event.
1111

12+
`options` is an object with the following defaults:
13+
14+
{ allowHalfOpen: false
15+
}
16+
1217
### net.createConnection(arguments...)
1318

1419
Construct a new socket object and opens a socket to the given location. When

0 commit comments

Comments
 (0)