Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The USBConnectionEvent()
constructor creates a new USBConnectionEvent
object which is passed to USB.onconnect
and USB.ondisconnect
. This constructor is not typically used, it is created by the browser in response to the connection and disconnection of a USB device.