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.
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.