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.
Click to show internal directories.
Click to hide internal directories.