wasm

command module
v0.0.0-...-f6acac0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 6 Imported by: 0

README

wasm

This example demos WASM support.

The example is supposed to be ran against one of the standalone examples in listening mode. Note that the example only supports the Dial side since Listen uses an HTTP server which isn't available in a browser.

Usage

Install dependencies

TODO: Check the root readme

Run
GOOS=js GOARCH=wasm go build -o main.wasm

Next, refer to the Go documentation for how to run a wasm file.

Output in the browser console

[dialer] Opened connection wasm_exec.js:47:6
[dialer] Opened stream

Output in the listener

[listener] Got stream
[listener] Received:
hey, how is it going. I am the dialer

Documentation

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