Can this api be used to detect USB plug/unplug?
samhuang1111 opened this issue · 1 comments
samhuang1111 commented
Can this api be used to detect USB plug/unplug?
thegecko commented
Yes, it follows the WebUSB spec which outlines onconnect
and ondisconnect` events:
Line 45 in 183e468
However, if you just want to detect usb devices in node and don't need it to look like WebUSB, I'd recommend using the node-usb or usb-detection libraries.