chrome.mdnsAPI to discover services over mDNS. This comprises a subset of the features of the NSD spec: http://www.w3.org/TR/discovery-api/
- AvailabilityChrome 43+
The IP address of an mDNS advertised service.
Metadata for an mDNS advertised service.
The host:port pair of an mDNS advertised service.
The service name of an mDNS advertised service, ..
The maximum number of service instances that will be included in onServiceList events. If more instances are available, they may be truncated from the onServiceList event.
Immediately issues a multicast DNS query for all service types.
callback is invoked immediately. At a later time, queries will be sent, and any service events will be fired.
callbackparameter looks like:
() => void
Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.
Event fired to inform clients of the current complete set of known available services. Clients should only need to store the list from the most recent event. The service type that the extension is interested in discovering should be specified as the event filter with the 'serviceType' key. Not specifying an event filter will not start any discovery listeners.