@gibme/multicast
    Preparing search index...

    Type Alias Options

    type Options = {
        dstAddress?: string | Address4 | Address6;
        dstPort?: number;
        srcAddress?: string | Address4 | Address6;
        useMulticastSocket?: boolean;
    }
    Index

    Properties

    dstAddress?: string | Address4 | Address6

    The destination address for the outgoing packet.

    Defaults to the multicastGroup address from the constructor options. Set this to send a unicast message to a specific host instead.

    dstPort?: number

    The destination port for the outgoing packet.

    Defaults to the port from the constructor options.

    srcAddress?: string | Address4 | Address6

    The source address to use for the outgoing packet.

    If not specified (and useMulticastSocket is not set), the packet is sent from all underlying unicast sockets.

    useMulticastSocket?: boolean

    If true, sends the packet via the shared multicast socket instead of the per-interface unicast sockets. Combine with srcAddress to control which interface the multicast socket uses; without it, the OS chooses the interface.

    false