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
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
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.
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.
P2P bittorrent software based on WebRTC already exists. It's called WebTorrent (source).
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