ShareIt-project / ShareIt

Peer-to-Peer filesharing in pure client-side Javascript
shareit.es
139 stars 32 forks source link

Resume peers connections on boot #112

Open piranna opened 11 years ago

piranna commented 11 years ago

Store on localStorage the UUIDs of connected peers and their discovered domains (if they where found thanks to a handshake server) and try to connect to them on boot. This would allow to increase connection speed and also to recover easily from unwanted disconnections. To do this, first try to connect to the stored domains and their corresponding peers, and later to the pending peers that was not able to fetch using a handshake server and the ones found over the P2P network.