Introducing HumbleNet: Cross-Platform Networking Library for the Browser
hacks.mozilla.org
hacks.mozilla.org
I've gotta say, though... It's a tad underwhelming to open up all the links and not see any of the demos hosted somewhere for you to try.
It looks like support was added to Quake 3 over two commits [1][2]. I don't know much about game development, but I'm surprised it took so few changes.
[0] http://caniuse.com/#feat=rtcpeerconnection
[1] https://github.com/HumbleNet/quake3/commit/a5469b0b1032cde40...
[2] https://github.com/HumbleNet/quake3/commit/9b96742651edc73d0...
No unreliable messages? Isn't this practically just recreating TCP on top of UDP if you can't opt out of reliable sends?
The demo i recall was using Firefox phones as game controllers for a racing game being projected from a laptop.
AFAIK the only benefit of decentralized peer discovery is to be resilient to censorship.
No, not really. One example where it's not about censorship is offline scenarios, but connected to the same network. If there is a central, upstream server for discovery, you won't be able to find other peers. If the discovery works offline/locally (as with Bonjour/mDNS), you can still find other peers. So it has a lot of value.
My favorite example of WebTorrent in action is Instant.io [1], which lets you easily transfer files across browsers.
It cannot interoperate with existing bittorrent clients. And it cannot maintain decentralized networks, i.e. it needs a central rendezvous server and session tokens, bittorrent needs no such thing due to the DHT.
Currently there is no single entity that could be ordered to shut down a bittorrent swarm. With the need for rendezvous servers on the other hand you could order them to block specific content.
Even with a DHT for any kind of practical content discovery, sites would need to track at least one member of the swarm so new peers can join.
It does not. I have downloaded many DHT-only torrents. Startup time tends to be a little longer, but that's mostly because implementations are tweaked for low packet per second rates and not low latency, which in turn is somewhat related to the poor quality of many home routers which do not deal well with the UDP traffic.
> so it's not really much of a downgrade.
Since people are trying to decentralize the web recentralizing already decentralized protocols seems a huge step backwards to me.
> Even with a DHT for any kind of practical content discovery, sites would need to track at least one member of the swarm so new peers can join.
In bittorrent the DHT is not about content discovery, it is a global network which you only need to join once (contacts are persisted - something not possible with webrtc) which can then be used for peer discovery for individual swarms.
This makes it fully decentralized.