wasmclient

command
v0.0.0-...-0fab95c Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command wasmclient is the browser-side half of the wasm end-to-end test and a worked example of a GOOS=js/wasm browserproxy client. It dials the browserpb Browser service through grpc-transports/websocket's js/wasm DialOption, runs the bidirectional Session stream (navigate → frame + state), and reports the outcome to the JS host via globalThis.__bpResult. It is driven by run.mjs.

This is the payoff of the gRPC-over-WebSocket migration: gorilla/websocket does not build for js/wasm, so before this transport a pure-Go browser client was impossible; here the very same client code runs in the browser.

Jump to

Keyboard shortcuts

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