温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/net/Server/close
点击访问原文链接

Server.close method | Node.js net module | Bun

Server.close method | Node.js net module | BunBuildDocsReferenceGuidesBlogDiscord/node:net/Server/closeMclose

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:net/Server/closeMclose

method

net.Server.closeclose(callback?: (err?: Error) => void): this;Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event. The optional callback will be called once the 'close' event occurs. Unlike that event, it will be called with an Error as its only argument if the server was not open when it was closed.

@param callbackCalled when the server is closed.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录