Use the chrome.dns API for dns resolution.
Use the chrome.dns API for dns resolution. * available since Chrome 77 * https://developer.chrome.com/extensions/dns
(resolve hostname)
Resolves the given hostname or IP address literal.
|hostname| - The hostname to resolve.
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 [resolve-info] where:
|resolve-info| - https://developer.chrome.com/extensions/dns#property-callback-resolveInfo.
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.
Resolves the given hostname or IP address literal. |hostname| - The hostname to resolve. 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 [resolve-info] where: |resolve-info| - https://developer.chrome.com/extensions/dns#property-callback-resolveInfo. 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/extensions/dns#method-resolve.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.dns namespace.
Taps all valid non-deprecated events in chromex.ext.dns namespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close