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

Usage in Deno

```typescript import { Socket } from "node:node__dgram.d.ts"; ```
Socket.prototype.setMulticastLoopback(flag: boolean): boolean
Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, multicast packets will also be received on the local interface. This method throws `EBADF` if called on an unbound socket.

Parameters

flag: boolean

Return Type

boolean