wasm

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Overview

The WASM bridge exposes exactly one global function to the page:

generateClientConfig(requestJSON string) string

The argument is a clientconfig.Request as JSON (see docs/json-schema.md); the return value is always a JSON string, one of:

{"ok": true,  "result": { ...clientconfig.Result... }}
{"ok": false, "error": "human-readable message"}

Randomness comes from crypto/rand, which under GOOS=js is backed by the browser's crypto.getRandomValues; the test page asserts that API exists before instantiating the module.

Jump to

Keyboard shortcuts

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