Skip to main content
Go to Latest
method Socket.prototype.setRecvBufferSize
import { Socket } from "https://deno.land/std@0.166.0/node/dgram.ts";

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