Returns the WebSocket connection close code provided by the server.
CloseEvent.code property | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/CloseEvent/codePcode BuildDocsReferenceGuidesBlogDiscord /Globals/CloseEvent/codePcode
Search the reference...
/
property
CloseEvent.codereadonly code: numberResources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →CloseEvent.code property | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Returns the WebSocket connection close code provided by the server.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)