When a wallet tries to connect multiple times to a DApp, multiple meerkat instances are added to the CardanoPeerConnect instance.
To only keep one instance for a given connection at a time, I propose we change the meerkats property to a Map. When adding a new connection, we look up if there is an old instance, close the old instance and add the new one.
This improves the reliability of connecting DApp and wallets.
When a wallet tries to connect multiple times to a DApp, multiple meerkat instances are added to the CardanoPeerConnect instance.
To only keep one instance for a given connection at a time, I propose we change the
meerkats
property to aMap
. When adding a new connection, we look up if there is an old instance, close the old instance and add the new one.This improves the reliability of connecting DApp and wallets.