Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Server.prototype.getConnections
import { Server } from "https://deno.land/std@0.167.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