ReadonlyidentifierA unique identifier for this search object.
Whether to search over peer-to-peer Bluetooth/Wi-Fi in addition to
standard network interfaces. Defaults to false.
Searches for domains visible to this machine (browsable domains).
If a browsable-domain search is already active it is stopped before
starting the new one. Service and registration-domain searches are
unaffected. The callback receives (event, domain, moreComing).
Called for each result with event name, domain string, and whether more results are expected
self, for chaining
Searches for domains on which this machine can register services.
If a registration-domain search is already active it is stopped before
starting the new one. Service and browsable-domain searches are
unaffected. The callback receives (event, domain, moreComing).
Called for each result with event name, domain string, and whether more results are expected
self, for chaining
Searches for services of the given type in the given domain.
If a service search is already active it is stopped before starting the
new one. Domain searches are unaffected. The callback receives
(event, service, moreComing) — see the type documentation for the
complete event table.
service type string, e.g. "_http._tcp." or "_ssh._tcp."
mDNS domain; "local." for the local link, "" for all domains
Called for each result with event name, service object, and whether more results are expected
self, for chaining
Stops all active searches. Safe to call when no search is active.
self, for chaining
Discovers Bonjour services and domains advertised on the local network. Create via
hs.bonjour.newSearch(), then call one of thefind…methods. Each search type uses its own underlyingNetServiceBrowser, so service and domain searches can run concurrently. Restarting any single search type stops only that browser before beginning the new one.Service search callback events
"serviceFound"HSBonjourService"serviceRemoved"HSBonjourService"error"Domain search callback events
"domainFound""domainRemoved""error"