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

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.