Skip to main content
Socket.prototype.setRecvBufferSize - dgram - Node documentation
method Socket.prototype.setRecvBufferSize

Usage in Deno

import { Socket } from "node:dgram";
Socket.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

size: number

Return Type

void