Re:Writing a printer driver in JavaScript
by bauerd on Tuesday February 01, 2022 @11:39AM
(#30165099)
Similarly, some years ago I prototyped an ESC/POS client (?) for a Bluetooth thermal printer. It was implemented as a Chrome Extension/Chrome App pair, because only Apps were allowed to use Chrome's proprietary Bluetooth API back then. Extension and App communicated via postMessage IIRC. I was shocked how well that hack actually worked. Google then sunset Chrome Apps, and Web Bluetooth never happened.
[ Parent
| on HN ]
Re:Writing a printer driver in JavaScript
by ctoth on Thursday February 03, 2022 @06:38PM
(#30200642)
Minor quibble, I'm actually using a Bluetooth device via Chrome as I type this message, so I'm pretty sure Web Bluetooth did in fact happen.
Re:Writing a printer driver in JavaScript
by plumeria on Thursday February 03, 2022 @08:50PM
(#30201804)
Interesting, I didn't know about Web Bluetooth. Mobile browsers seem to have the most complete implementations [0].
[0] https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetoo...