This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Correct net.createServer() API docs

  • Loading branch information...
1 parent 4e7c37b commit 452df69964d3e1955a17238a572fccf8d22bc881 @koichik koichik committed with ry Mar 2, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 doc/api/net.markdown
View
@@ -4,11 +4,16 @@ The `net` module provides you with an asynchronous network wrapper. It contains
methods for creating both servers and clients (called streams). You can include
this module with `require("net");`
-### net.createServer(connectionListener)
+### net.createServer([options], [connectionListener])
Creates a new TCP server. The `connectionListener` argument is
automatically set as a listener for the `'connection'` event.
+`options` is an object with the following defaults:
+
+ { allowHalfOpen: false
+ }
+
### net.createConnection(arguments...)
Construct a new socket object and opens a socket to the given location. When

0 comments on commit 452df69

Please sign in to comment.