Skip to main content
Module

std/node/net.ts>Server#ref

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Server.prototype.ref
import { Server } from "https://deno.land/std@0.167.0/node/net.ts";

Opposite of unref(), calling ref() on a previously unrefed server will not let the program exit if it's the only server left (the default behavior). If the server is refed calling ref() again will have no effect.