Module

std/node/net.ts>Socket#unref

Deno standard library
Go to Latest
method Socket.prototype.unref
import { Socket } from "https://dotland.deno.dev/std@0.116.0/node/net.ts";

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

Returns

this

The socket itself.