事件:'drop'


🌐 Event: 'drop'

当连接数达到 server.maxConnections 的阈值时,服务器将拒绝新的连接并触发 'drop' 事件。如果是 TCP 服务器,参数如下,否则参数为 undefined

🌐 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> 传递给事件监听器的参数。