go-libp2p-daemon icon indicating copy to clipboard operation
go-libp2p-daemon copied to clipboard

Support WebSockets for control

Open magik6k opened this issue 6 years ago • 1 comments

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.

magik6k avatar Jan 21 '19 21:01 magik6k

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

jimpick avatar Nov 16 '20 21:11 jimpick