Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method dgram.Socket.prototype.setBroadcast
import { dgram } from "https://deno.land/x/tellojs@v1.0.2/src/deps.ts";
const { Socket } = dgram;

Sets or clears the SO_BROADCAST socket option. When set to true, UDP packets may be sent to a local interface's broadcast address.

This method throws EBADF if called on an unbound socket.

Parameters

arg: boolean