Skip to main content
Module

std/node/dgram.ts>Socket#address

Deno standard library
Go to Latest
method Socket.prototype.address
import { Socket } from "https://deno.land/std@0.166.0/node/dgram.ts";

Returns an object containing the address information for a socket. For UDP sockets, this object will contain address, family and portproperties.

This method throws EBADF if called on an unbound socket.