This repository integrates Go Cap'n Proto with websockets. The main package uses github.com/gobwas/ws, and there is a js package which uses browser APIs via syscall/js, for use from WASM.
js
syscall/js