9

When will it be posible to exchange any kind of data via P2P with WebRTC?

I'm thinking about making a P2P bittorrent software, not to stream audio/video.

Thanks

jacktrades
  • 7,224
  • 13
  • 56
  • 83

4 Answers4

8

There are some JS libraries: PeerJS and BoneValue for P2P data exchanging using WebRTC.

If you want to make a BitTorrent-like JS app for sending files, be aware that there are some already - BtAppJS, ShareFest, ShareIt, RTC-P2P, and P2P-Share.

niutech
  • 28,923
  • 15
  • 96
  • 106
  • 1
    Wow those are some great links. WebRTC is going to take over and I'm loving it. Right now I have a huge bittorrent service in production relying on embedded Java but you better believe once WebRTC is fully adopted properly we'll be moving to it. – xendi Nov 29 '13 at 23:05
5

This will available in Chrome using the DataChannel: http://webrtc-demos.appspot.com/html/dc1.html

You can see an overview in this talk from Google I/O: http://www.youtube.com/watch?v=E8C8ouiXHHk&t=24m30s

I have not been able to establish a data connection in Chrome 21 or 22 (Canary), next step is to try compiling for myself.

diffalot
  • 101
  • 1
  • 5
2

P2P bittorrent software based on WebRTC already exists. It's called WebTorrent (source).

Geremia
  • 4,745
  • 37
  • 43
0

WebRTC that doesn't stream audio/video but arbitrary data is called RTCDataChannel: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel

But you are late - WebTorrent already exists.

WebTorrent client: https://github.com/webtorrent/webtorrent

WebTorrent tracker implementation: https://github.com/Novage/wt-tracker

Hybrid BitTorrent\WebTorrent tracker: https://github.com/webtorrent/bittorrent-tracker