Skip to main content
Go to Latest
method Server.prototype.getConnections
import { Server } from "https://deno.land/std@0.158.0/node/net.ts";

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.

Parameters

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