summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Gruber <julian@juliangruber.com>2014-04-24 04:18:31 -0700
committerFedor Indutny <fedor@indutny.com>2014-04-24 19:59:41 +0400
commitb0fa931e0751df74242b9f069388b628e1ab43c2 (patch)
treedc5b140ce41e9eeebc3db20691d24510c8bb4960 /doc
parent4601e7c8927ba5655f0872f1f1794aec2b9a4d56 (diff)
downloadandroid-node-v8-b0fa931e0751df74242b9f069388b628e1ab43c2.tar.gz
android-node-v8-b0fa931e0751df74242b9f069388b628e1ab43c2.tar.bz2
android-node-v8-b0fa931e0751df74242b9f069388b628e1ab43c2.zip
doc: fix order in net api
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/net.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/net.markdown b/doc/api/net.markdown
index 9cd6ddf519..7e1412ea0f 100644
--- a/doc/api/net.markdown
+++ b/doc/api/net.markdown
@@ -235,8 +235,6 @@ This becomes `null` when sending a socket to a child with
`child_process.fork()`. To poll forks and get current number of active
connections use asynchronous `server.getConnections` instead.
-`net.Server` is an [EventEmitter][] with the following events:
-
### server.getConnections(callback)
Asynchronously get the number of concurrent connections on the server. Works
@@ -244,6 +242,8 @@ when sockets were sent to forks.
Callback should take two arguments `err` and `count`.
+`net.Server` is an [EventEmitter][] with the following events:
+
### Event: 'listening'
Emitted when the server has been bound after calling `server.listen`.