Module

std/node/net.ts>Socket#address

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

Returns the bound address, the address family name and port of the socket as reported by the operating system:{ port: 12346, family: "IPv4", address: "127.0.0.1" }

Returns

AddressInfo | Record<string, never>