property exclusive | Bun module | Bun
BuildDocsReferenceGuidesBlogDiscord/
Bun/
TCPSocketListenOptions/
exclusivePexclusive
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
Bun/
TCPSocketListenOptions/
exclusivePexclusive
property
TCPSocketListenOptions.exclusiveexclusive?: boolean
Whether to use exclusive mode.
When set to true, the socket binds exclusively to the specified address:port combination, preventing other processes from binding to the same port.
When false (default), other sockets may be able to bind to the same port depending on the operating system's socket sharing capabilities and settings.
Exclusive mode is useful in scenarios where you want to ensure only one instance of your server can bind to a specific port at a time.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →