@digitalpersona/devices
Version:
DigitalPersona Security Devices support library
25 lines (14 loc) • 686 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/devices](./devices.md) > [CardsReader](./devices.cardsreader.md) > [subscribe](./devices.cardsreader.subscribe.md)
## CardsReader.subscribe() method
Starts listening for card reader events.
<b>Signature:</b>
```typescript
subscribe(reader?: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| reader | <code>string</code> | an optional name of a card reader to listen. If no name is provided, the API will start listening all card readers. |
<b>Returns:</b>
`Promise<void>`