@achingbrain/ssdp
    Preparing search index...

    Interface Advertisement

    interface Advertisement {
        details: Record<string, any> | (() => Promise<Record<string, any>>);
        interval?: number;
        ipv4?: boolean;
        ipv6?: boolean;
        location?: { udp4: string; udp6: string };
        ttl?: number;
        usn: string;
    }
    Index

    Properties

    details: Record<string, any> | (() => Promise<Record<string, any>>)

    Advertisement details. Will be transformed into XML and should follow the urn:schemas-upnp-org:device-1-0 schema.

    interval?: number

    An optional amount in ms which is the frequency to advertise the service

    ipv4?: boolean

    Whether to broadcast the advert over IPv4 (default: true)

    ipv6?: boolean

    Whether to broadcast the advert over IPv6 (default: true)

    location?: { udp4: string; udp6: string }

    Where the description document(s) are available - omit to have an http server automatically created

    ttl?: number

    An optional amount in ms which is how long the advert should be cached for

    usn: string

    A unique service name for the advertisement