Liking cljdoc? Tell your friends :D

chromex.app.mdns

clj

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 31
  * https://developer.chrome.com/apps/mdns
raw docstring

api-tableclj

source

force-discoveryclj/smacro

(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.
sourceraw docstring

force-discovery*cljs

(force-discovery* config)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-max-service-instances-per-eventclj/smacro

(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.
sourceraw docstring

max-service-instances-per-event*cljs

(max-service-instances-per-event* config)
source

on-service-list*cljs

(on-service-list* config channel & args)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

tap-on-service-list-eventsclj/smacro

(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.

https://developer.chrome.com/apps/mdns#event-onServiceList.

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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close