Skip to main content
method Socket.prototype.setSendBufferSize
Socket.prototype.setSendBufferSize(size: number): void
Deprecated

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

size: number

Return Type

void
Back to top