How to use the @ledgerhq/hw-transport-node-ble.default.disconnect function in @ledgerhq/hw-transport-node-ble

To help you get started, we’ve selected a few @ledgerhq/hw-transport-node-ble examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LedgerHQ / ledger-live-common / cli / src / live-common-setup.js View on Github external
disconnect: query =>
      query.startsWith("ble")
        ? cacheBle[query]
          ? TransportNodeBle.disconnect(cacheBle[query].id)
          : Promise.resolve()
        : null
  });

@ledgerhq/hw-transport-node-ble

Ledger Hardware Wallet Bluetooth BLE transport for Node.js (noble)

MIT
Latest version published 9 months ago

Package Health Score

78 / 100
Full package analysis