Go to Latest
method Server.prototype.getConnections
import { Server } from "https://dotland.deno.dev/std@0.177.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