Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/grm/deps.ts>Socket#unref

MTProto API Client for Deno 🦕
Go to Latest
method Socket.prototype.unref
import { Socket } from "https://deno.land/x/grm@v0.3.1/deps.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.