server.getConnections(callback)
-
callback
<Function> -
返回:<net.Server>
¥Returns: <net.Server>
异步获取服务器上的并发连接数。当套接字被发送到复刻时工作。
¥Asynchronously get the number of concurrent connections on the server. Works when sockets were sent to forks.
回调应该采用两个参数 err
和 count
。
¥Callback should take two arguments err
and count
.