@gibme/multicast
    Preparing search index...

    Type Alias Options

    Options: Omit<SocketOptions, "type"> & {
        exclusive?: boolean;
        host?: string | Address4 | Address6;
        loopback?: boolean;
        multicastGroup: string;
        port: number;
    }

    Type Declaration

    • Optionalexclusive?: boolean

      When false (the default), cluster workers share the same underlying socket handle. When true, the handle is not shared and attempted port sharing results in an error.

      Note: setting reusePort to true implicitly forces exclusive to true.

    • Optionalhost?: string | Address4 | Address6

      The local host to bind to. Accepts an IPv4 address, IPv6 address, or a network interface name (e.g. 'eth0'). If omitted, all available interfaces are used.

      When an IP address is provided, only the matching interface is used. When an interface name is provided, all addresses assigned to that interface are used. The address family must match the multicastGroup (IPv4 group requires IPv4 host).

    • Optionalloopback?: boolean

      When true, the instance will also receive its own outgoing multicast packets via the 'message' event (with fromSelf set to true).

      false
      
    • multicastGroup: string

      The multicast group address to join (e.g. '224.0.0.251' for IPv4).

    • port: number

      The local port to which the multicast socket is bound.