Skip to main content

setRecvBufferSize

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

Sets the SO_RCVBUF socket option. Sets the maximum socket receive 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