Skip to main content
Socket.prototype.setSendBufferSize - node__dgram.d.ts - Node documentation
method Socket.prototype.setSendBufferSize

Usage in Deno

```typescript import { Socket } from "node:node__dgram.d.ts"; ```
Socket.prototype.setSendBufferSize(size: number): void
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