Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.127.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