The network address as either an IPv4 or IPv6 string.
constructor
net.SocketAddress.constructor
Not implemented in Bun
Referenced types
class SocketAddress
- @param input
An input string containing an IP address and optional port, e.g.
123.1.2.3:1234or[1::1]:1234.@returnsReturns a
SocketAddressif parsing was successful. Otherwise returnsundefined.