peer-pad icon indicating copy to clipboard operation
peer-pad copied to clipboard

support stream through IPFS daemon

Open pgte opened this issue 6 years ago • 6 comments

One of the reasons why we were not able to use an IPFS daemon instead of an embedded js-ipfs node was because go-ipfs didn't allow for p2p streams. But go-ipfs now it does have the p2p command which opens a duplex stream.

(/cc @whyrusleeping)

pgte avatar Jan 17 '19 13:01 pgte

for clarity, this would work through companion, correct?

parkan avatar Jan 17 '19 19:01 parkan

Apparently js-ipfs does not support this, so I think companion doesn't either. Opened respective issue on js-ipfs for clarification.

pgte avatar Jan 17 '19 21:01 pgte

Cc @magik6k (the author of these features on the go side)

whyrusleeping avatar Jan 21 '19 20:01 whyrusleeping

So go-ipfs exposes libp2p streams via ipfs p2p for quite a while already, but it's not really useful for browsers since it requires use of native sockets.

There was some discussion on creating a websocket interface to these commands to enable browsers to open/listen for p2p streams, but iirc the conclusion was to focus on https://github.com/libp2p/go-libp2p-daemon, and just support websockets there

magik6k avatar Jan 21 '19 21:01 magik6k

(AFAIK it should be possible to implement on the extension level, cc @lidel)

magik6k avatar Jan 21 '19 21:01 magik6k

@magik6k ha, thanks for the feedback! If it's not websockets we can't use it directly in the browser context, and we would need this to be in the IPFS daemon..

pgte avatar Jan 22 '19 10:01 pgte