Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Socket.prototype.setSendBufferSize
import { Socket } from "https://deno.land/std@0.148.0/node/dgram.ts";

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