Can HTML5 communicate with peripherals like scanners and credit card readers?

后端 未结 5 2177
难免孤独
难免孤独 2020-11-30 17:46

My company writes software that installs on client machines to perform point-of-sale transactions. The software interfaces with a variety of external peripherals (receipt p

5条回答
  •  没有蜡笔的小新
    2020-11-30 18:26

    This is possible, but it would have to be done indirectly. In theory, you could write a socket-server in a low level language, which gets I/O, and sends the I/O through the socket (relaying, I guess). HTML5 uses WebSockets, or some equivalent to communicate with this socket-server.

提交回复
热议问题