wasm

command
v0.0.0-...-3413cf5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

README

WebAssembly DNS Demo

Function access

const {query, parse} = window.goFuncs

const q = query("test.somewhe.re")

const resp = await fetch(`https://zembla.zenr.io/dns-query?dns=${q}`)
// TODO: assert status == 200
const data = await resp.arrayBuffer()

const answer = parse(_arrayBufferToBase64(data))
console.log(answer)

Documentation

Rendered for js/wasm
The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL