Skip to main content
Socket.prototype.address - Node documentation
method Socket.prototype.address

Usage in Deno

import { Socket } from "node:dgram";
Socket.prototype.address(): AddressInfo

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.

Return Type