Closed plazav closed 6 years ago
I'm not understanding your code and it's not going to work: e.g. listen take an observer.
create() actually already use listen and open under the hood https://github.com/LedgerHQ/ledgerjs/blob/c22d3f24fcd5e4f17996ab6766d747fc2cc62dbd/packages/hw-transport/src/Transport.js#L285
So you just need create() , it is the simplest possible API.
Also in context of u2f, you have no way knowing if a device connect or disconnect, so if you were looking for this, it's unfortunate (hopefully webusb will fix it) and the only way is to pull&retry create() until it succeed.
Thank you! That was helpful!
Can not configure Ledgerjs for working with hw-transport-u2f Here is official sample
Here is how I am trying
But it is not even clear at what moment transport listen should be fired. I have tried to connect Ledger, to enter application... May be that is wrong code?