retrohacker / peerweb.js

A client side library for fetching and rendering a static website via torrent over WebRTC
198 stars 15 forks source link

Fallback 0 seeders or seeders lost #5

Open hhirsch opened 8 years ago

hhirsch commented 8 years ago

When there are 0 seeders or the last seeder is lost there has to be a fallback.

retrohacker commented 8 years ago

Thanks for the issue @hhirsch :smile:

I've been thinking of an extension to this library that exposes progress/stats through an EventEmitter returned from window.peerweb.render. Something like on('stats', function(stats) { ... }) where stats is an object that has the info you are looking for. The fallback would be left to the consumer of the library.