diff options
Diffstat (limited to 'doc/api/net.markdown')
-rw-r--r-- | doc/api/net.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 3aad0940f49..957b7085e52 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -259,8 +259,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 @@ -268,6 +266,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`. @@ -559,5 +559,6 @@ Returns true if input is a version 6 IP address, otherwise returns false. ['end']: #net_event_end [EventEmitter]: events.html#events_class_events_eventemitter ['listening']: #net_event_listening +[server.getConnections()]: #net_server_getconnections_callback [Readable Stream]: stream.html#stream_readable_stream [stream.setEncoding()]: stream.html#stream_stream_setencoding_encoding |