Skip to main content
Module

std/node/dgram.ts>Socket#disconnect

Deno standard library
Go to Latest
method Socket.prototype.disconnect
import { Socket } from "https://deno.land/std@0.166.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.