Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Server.prototype.getConnections
import { Server } from "https://deno.land/std@0.112.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