@homebridge/ciao - v1.4.2
    Preparing search index...

    Interface ServiceOptions

    Service options supplied when creating a new ciao service.

    interface ServiceOptions {
        disabledIpv6?: boolean;
        domain?: string;
        hostname?: string;
        name: string;
        port?: number;
        protocol?: Protocol;
        restrictedAddresses?: string[];
        subtypes?: string[];
        txt?: ServiceTxt;
        type: string;
    }
    Index
    disabledIpv6?: boolean

    The service won't advertise ipv6 address records. This can be used to simulate binding on 0.0.0.0. May be combined with restrictedAddresses.

    domain?: string

    Adds ability to set custom domain. Will default to "local". The domain will also be automatically appended to the hostname. Creating the service throws when a label of the domain is empty or takes more than 63 octets, with an error naming the hostname it is appended to, or when the domain carries the service's full name past 255 octets on the wire, with an error naming that name.

    hostname?: string

    Defines a hostname under which the service can be reached. The specified hostname must not include the TLD. It is a domain name in DNS presentation form, so a dot separates labels and a backslash escapes the character after it, and each space in it becomes a dash. If undefined, the hostname is derived from the service name as one label, in which each space and each dot becomes a dash. Creating the service throws when a label of the hostname, the domain's among them, is empty or takes more than 63 octets, or when the hostname with its domain takes more than 255 octets on the wire.

    name: string

    Instance name of the service

    port?: number

    Port of the service. If not supplied it must be set later via CiaoService.updatePort BEFORE advertising the service.

    protocol?: Protocol

    The protocol the service uses. Default is TCP.

    restrictedAddresses?: string[]

    If defined it restricts the service to be advertised on the specified ip addresses or interface names.

    If an interface name is specified, ANY address on that given interface will be advertised (if an IP address of the given interface is also given in the array, it will be overridden). If an IP address is specified, the service will only be advertised for the given addresses.

    Interface names and addresses can be mixed in the array. If an ip address is given, the ip address must be valid at the time of service creation.

    If the service is set to advertise on a given interface, though the MDNSServer is configured to ignore this interface, the service won't be advertised on the interface.

    subtypes?: string[]

    Optional array of subtypes of the service. Refer to ServiceType for some known examples.

    If defined, a txt record will be published with the given service. Creating the service throws when an entry, written as key=value, takes more than 255 octets.

    type: string

    Type of the service.