go-libp2p-daemon
go-libp2p-daemon copied to clipboard
Support WebSockets for control
This should be easy once https://github.com/libp2p/go-libp2p-daemon/issues/24 is done, and would be really useful for things like https://github.com/ipfs-shipyard/peer-pad/issues/285.
I've implemented this as a proof-of-concept - I borrowed the main websockets implementation from go-ws-transport and it works from WebAssembly as well. I'm using it so that I can use talk to Lotus miners (running only TCP) from a web browser via a p2pd gateway. It's a bit ugly right now ... I probably wouldn't merge this implementation, but it works.
Here's the top level project:
https://github.com/filecoin-shipyard/lotus-wasm-experiments