Module

std/node/dgram.ts>Socket#disconnect

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

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.