exclusive

Pexclusive
Bun

Symbol

TCPSocketConnectOptions.exclusive

exclusive?: 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.