Use the chrome.system.network API.
Use the chrome.system.network API. * available since Chrome 35 * https://developer.chrome.com/apps/system.network
(get-network-interfaces)
Retrieves information about local adapters on this system.
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 [network-interfaces] where:
|network-interfaces| - Array of object containing network interfaces information.
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/system.network#method-getNetworkInterfaces.
Retrieves information about local adapters on this system. 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 [network-interfaces] where: |network-interfaces| - Array of object containing network interfaces information. 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/system.network#method-getNetworkInterfaces.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.system.network namespace.
Taps all valid non-deprecated events in chromex.app.system.network namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close