Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Is the js-ipfs Javascript library the equivalent for IPFS of what WebTorrent is to Bittorrent? #180

Closed
mayerwin opened this issue Sep 18, 2016 · 4 comments
Labels

Comments

@mayerwin
Copy link

mayerwin commented Sep 18, 2016

Is the browser-embeddable Javascript library js-ipfs the equivalent for IPFS of what WebTorrent is to Bittorrent? How does fallback work for browsers that do not support WebRTC?

@mayerwin mayerwin changed the title Is the js-ipfs Javascript library the equivalent for IPFS of what Webtorrent is to Bittorrent? Is the js-ipfs Javascript library the equivalent for IPFS of what WebTorrent is to Bittorrent? Sep 18, 2016
@daviddias
Copy link

Hi @mayerwin, apologies for taking so long to get back to you, I completely missed this one.

js-ipfs is a full node, not a light client. In its final state it will be able to talk with any node in the network. See a more complete answer here: #97

@mayerwin
Copy link
Author

@diasdavid Thanks, I didn't find the answers to the second part of the question though: does js-ipfs make use of WebRTC? If so, is there any fallback to browsers that do not support it to ensure js-ipfs works on all major browsers (Firefox, Chrome, Edge, Safari)?

@daviddias
Copy link

@mayerwin right! On that part, the simple answer is Yes and Yes 🌐, IPFS uses libp2p, a modular network stack that enables IPFS to use transports like: WebRTC, WebSockets, HTTP, uTP, TCP and QUIC to name a few. However, if no WebRTC is available, it means that the other transport used (namely for the browser it will have to be WebSockets or HTTP), will need to be 'upgraded' to be able to do things like Relay/TURN, but that is also part of the libp2p modular stack. See more here: https://github.com/libp2p/js-libp2p

@madavieb
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants