doc: fix order in net api

Signed-off-by: Fedor Indutny <fedor@indutny.com>
pull/24998/head
Julian Gruber 2014-04-24 04:18:31 -07:00 committed by Fedor Indutny
parent 4601e7c892
commit b0fa931e07
1 changed files with 2 additions and 2 deletions

View File

@ -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`.