Calling unref() on a socket will allow the program to exit if this is the only active socket in the event system. If the socket is already unrefed callingunref() again will have no effect.
Socket.unref method | Node.js net module | Bun BuildDocsReferenceGuidesBlogDiscord/node:net/Socket/unrefMunref BuildDocsReferenceGuidesBlogDiscord /node:net/Socket/unrefMunref net.Socket.unrefunref(): this; @returns
Search the reference...
/
method
The socket itself.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Socket.unref method | Node.js net module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:net.Socket.unref | Bun