mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
doc: fix order in net api
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
4601e7c892
commit
b0fa931e07
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user