diff options
Diffstat (limited to 'doc/api/net.markdown')
-rw-r--r-- | doc/api/net.markdown | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 2b54dbeb0..804935e39 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -231,10 +231,19 @@ with `child_process.fork()`. The number of concurrent connections on the server. -This becomes `null` when sending a socket to a child with `child_process.fork()`. +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 +when sockets were sent to forks. + +Callback should take two arguments `err` and `count`. + ### Event: 'listening' Emitted when the server has been bound after calling `server.listen`. |