MgetConnections
Bun

method

net.Server.getConnections

cb: (error: null | Error, count: number) => void
): void;

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

Callback should take two arguments err and count.