Connect to USB Card Readers with Websockets - ID TECH
- IT-ADMIN G (Deactivated)
- Richard Brooks
idtechproducts.com/technical-post/usb-ca...
You can connect to any USB card reader from any web browser using Websockets and NodeJS. Which means you can do EMV transactions from a Virtual Terminal. Find out how, below! Last time, I showed how to set up USB connectivity via JavaScript using NodeJS and a module called node-hid. The result was that we were able to get programmatic access to USB devices, from JavaScript, in only about 75 lines of code. Our script implemented automatic device detection and connection, and got us a device handle with which to do reading and writing of USB data. All of which is fine, if the only thing you need is programmatic access to USB data from within a Node script. But what if you want to communicate that data to another process? What if (for example) you want to send...