diff --git a/doc/api/net.md b/doc/api/net.md index ca4d189fd70..bfc26b59d2a 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -257,6 +257,23 @@ added: v0.1.90 Emitted when the server has been bound after calling [`server.listen()`][]. +### Event: `'drop'` + + + +When the number of connections reaches the threshold of `server.maxConnections`, +the server will drop new connections and emit `'drop'` event instead. If it is a +TCP server, the argument is as follows, otherwise the argument is `undefined`. + +* `data` {Object} The argument passed to event listener. + * `localAddress` {string} Local address. + * `localPort` {number} Local port. + * `remoteAddress` {string} Remote address. + * `remotePort` {number} Remote port. + * `remoteFamily` {string} Remote IP family. `'IPv4'` or `'IPv6'`. + ### `server.address()`