Skip to main content
Server.prototype.unref - net - Node documentation
method Server.prototype.unref

Usage in Deno

import { Server } from "node:net";
Server.prototype.unref(): this

Calling unref() on a server will allow the program to exit if this is the only active server in the event system. If the server is already unrefed callingunref() again will have no effect.

Return Type

this