WebSocket PC/SC API
Gives access to the PC/SC readers attached to the computer.
JSON-RPC methods
Listing and reader information
-
List PC/SC readers :
pcsc.readers
-
Get PC/SC reader data :
pcsc.reader.{$id}
Using the reader for PC/SC operation
The functions below map to SCardConnect
, SCardDisconnect
and SCardTransmit
, respectively.
-
Open a channel with the card in the reader :
pcsc.reader.{$id}.connect
(counterpart forSCardConnect
) -
Close the channel with the card :
pcsc.reader.{$id}.disconnect
(counterpart forSCardDisconnect
) -
Exchange APDUs with the card :
pcsc.reader.{$id}.transmit
(counterpart forSCardTransmit
)
Reader real-time control
The functions below will work with SpringCard PC/SC readers only.
-
Send a command to the reader :
pcsc.reader.{$id}.control
(counterpart forSCardControl
)