How to use the @ledgerhq/hw-transport-web-ble.open function in @ledgerhq/hw-transport-web-ble

To help you get started, we’ve selected a few @ledgerhq/hw-transport-web-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 / tools / src / live-common-setup.js View on Github external
open: (id: string): ?Promise<*> => {
    if (id.startsWith("webble")) {
      const existingDevice = webbleDevices[id];
      return existingDevice
        ? TransportWebBLE.open(existingDevice)
        : TransportWebBLE.create();
    }
    return null;
  },
github Mrtenz / FindETH / packages / web / src / wallets / ledger / LedgerBLE.ts View on Github external
private async getTransport(): Promise {
    const device = await this.getDevice();
    const transport = await TransportWebBLE.open(device);

    transport.on('disconnect', () => {
      this.transport = null;
    });

    return transport;
  }
github Mrtenz / FindETH / src / wallets / ledger / LedgerBLE.ts View on Github external
private async getTransport(): Promise {
    const device = await this.getDevice();
    const transport = await TransportWebBLE.open(device);

    transport.on('disconnect', () => {
      this.transport = null;
    });

    return transport;
  }

@ledgerhq/hw-transport-web-ble

Ledger Hardware Wallet Web Bluetooth implementation of the communication layer

MIT
Latest version published 3 days ago

Package Health Score

90 / 100
Full package analysis