weshnet
weshnet copied to clipboard
feat: browser support via wasm + helia
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