webtor-wasm v0.5.7
Pre-built WebAssembly bindings for webtor-rs.
Installation
Download and extract to your project:
curl -L https://github.com/igor53627/webtor-rs/releases/download/v0.5.7/webtor-wasm-v0.5.7.tar.gz | tar xz -C ./vendor/webtor-wasmUsage
import init, { TorClient, TorClientOptions } from './vendor/webtor-wasm/webtor_wasm.js'
await init()
const options = new TorClientOptions('wss://snowflake.torproject.net/')
const client = await new TorClient(options)
await client.waitForCircuit()