weshnet icon indicating copy to clipboard operation
weshnet copied to clipboard

feat: browser support via wasm + helia

Open n0izn0iz opened this issue 8 months ago • 2 comments

Depends on https://github.com/berty/go-orbit-db/pull/151

Demo

https://github.com/berty/weshnet/assets/7917064/609fcb18-6b7d-4c80-bc6d-d68fdbdd3eda

Usage

cd wasm && make serve the navigate to "localhost:4242" in two browsers

Caveats

  • The group invitation is printed in the console only, you can then paste it in the input next to "join" button and click it
  • You need to dial the other peer manually via helia.libp2p.dial(Libp2PPeerId.peerIdFromString("<peerId-of-other-browser>")) in the browser console
  • It only got it to work between a firefox and a chrome, not 2 chrome or 2 ff, and only once bidirectionally

n0izn0iz avatar Jun 10 '24 14:06 n0izn0iz