Use the chrome.mdns API to discover services over mDNS. This comprises a subset of the features of the NSD spec: http://www.w3.org/TR/discovery-api/
Use the chrome.mdns API to discover services over mDNS. This comprises a subset of the features of the NSD spec: http://www.w3.org/TR/discovery-api/ * available since Chrome 36 * https://developer.chrome.com/apps/mdns
(force-discovery)
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.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/apps/mdns#method-forceDiscovery.
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. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/apps/mdns#method-forceDiscovery.
(get-max-service-instances-per-event)
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.
https://developer.chrome.com/apps/mdns#property-MAX_SERVICE_INSTANCES_PER_EVENT.
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. https://developer.chrome.com/apps/mdns#property-MAX_SERVICE_INSTANCES_PER_EVENT.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.mdns namespace.
Taps all valid non-deprecated events in chromex.app.mdns namespace.
(tap-on-service-list-events channel & args)
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.
Events will be put on the |channel| with signature [::on-service-list [services]] where:
|services| - https://developer.chrome.com/apps/mdns#property-onServiceList-services.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
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. Events will be put on the |channel| with signature [::on-service-list [services]] where: |services| - https://developer.chrome.com/apps/mdns#property-onServiceList-services. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/apps/mdns#event-onServiceList.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close