server.connections


稳定性: 0 - 弃用: 改为使用 server.getConnections()

服务器上的并发连接数。

当向具有 child_process.fork() 的子进程发送套接字时,这将变为 null。 要轮询衍生并获取当前的活动连接数,则改用异步的 server.getConnections()

Stability: 0 - Deprecated: Use server.getConnections() instead.

The number of concurrent connections on the server.

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.