Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method dgram.Socket.prototype.disconnect
import { dgram } from "https://deno.land/x/tellojs@v1.0.2/src/deps.ts";
const { Socket } = dgram;

A synchronous function that disassociates a connected dgram.Socket from its remote address. Trying to call disconnect() on an unbound or already disconnected socket will result in an ERR_SOCKET_DGRAM_NOT_CONNECTED exception.