setNoDelay

Bun

Symbol

TCPSocket.setNoDelay

setNoDelay(noDelay?: boolean): boolean

Enable/disable the use of Nagle's algorithm. Only available for already connected sockets, will return false otherwise

@param noDelay

Default: true

@returns

true if is able to setNoDelay and false if it fails.