server.getConnections(callback)


异步获取服务器上的并发连接数。适用于将套接字发送到子进程时。

🌐 Asynchronously get the number of concurrent connections on the server. Works when sockets were sent to forks.

回调函数应接受两个参数:errcount

🌐 Callback should take two arguments err and count.