Skip to main content

setSendBufferSize

method Socket.prototype.setSendBufferSize
Jump to headingSocket.prototype.setSendBufferSize(size: number): void

Sets the SO_SNDBUF socket option. Sets the maximum socket send buffer in bytes.

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.

Parameters Jump to heading

Jump to headingsize: number

Return Type Jump to heading

void
Back to top