The network address as either an IPv4 or IPv6 string.
SocketAddress.constructor constructor | Node.js net module | Bun BuildDocsReferenceGuidesBlogDiscord/node:net/SocketAddress/constructorCoconstructor BuildDocsReferenceGuidesBlogDiscord /node:net/SocketAddress/constructorCoconstructor net.SocketAddress.constructor Not implemented in Bunconstructor SocketAddress(options: SocketAddressInitOptions): SocketAddress;Referenced typesinterface SocketAddressInitOptionsaddress?: string family?: IPVersionflowlabel?: number port?: number class SocketAddressreadonly address: string readonly family: IPVersion readonly flowlabel: numberreadonly port: numberstatic parse(input: string): undefined | SocketAddress;@param input @returns
Search the reference...
/
constructor
An IPv6 flow-label used only if family is 'ipv6'.
An IP port.
Either 'ipv4' or 'ipv6'.
Either 'ipv4' or 'ipv6'.
An input string containing an IP address and optional port, e.g. 123.1.2.3:1234 or [1::1]:1234.
Returns a SocketAddress if parsing was successful. Otherwise returns undefined.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →SocketAddress.constructor constructor | Node.js net module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for constructor node:net.SocketAddress.constructor | Bun