Skip to main content
method Socket.prototype.address
Socket.prototype.address(): AddressInfo
Deprecated

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

This method throws EBADF if called on an unbound socket.

Return Type

Back to top