TTY WebSocket Bridge
Card readers and scanners, on a websocket
Puts a terminal's serial readers on a websocket, so a web application can read a card or a barcode without anything installed in the browser.
Several readers, one websocket
Each serial port runs its own thread and they all feed one server, because a terminal has one web application.
Says which reader scanned
The output format carries the port index, so a page with one connection can still tell two readers apart.
Card readers and scanners
Raw pass-through for scanners and scales, or RDM6300 packet decoding for RFID card readers.
Repeats collapsed
A reader streams its number while a card is held; a configurable window turns that back into one event.
Faults are reported
A port that will not open tells every client that connects, rather than looking like a reader nobody has used.
A card reader or barcode scanner speaks over a serial port, and a web page cannot. This bridges the two: the reader’s output arrives as a websocket message, so the page that needs it is an ordinary web page with no plugin, no driver and nothing to install on the terminal.
A terminal with more than one reader is served by one bridge over one websocket. Which reader scanned is carried in the message itself, so a page keeps a single connection and still knows where a scan came from.
