HIDConnectionEvent: HIDConnectionEvent() constructor
  
  
   
   
   The HIDConnectionEvent() constructor creates a new HIDConnectionEvent object. Typically this constructor is not used as events are created when an input report is received.
   
  Syntax
  
   
    
    new HIDConnectionEvent(type, options)
    
   
  Parameters
  
   
    - 
     
type
     
    - 
     
A string with the name of the event. It is case-sensitive and browsers set it to connect or disconnect.
     
    - 
     
options
     
    - 
     
An object that, in addition of the properties defined in Event(), can have the following properties:
     
      - 
       
device
       
      - 
       
The HIDDevice instance representing the device sending the input report.
       
     
     
   
   
  Return value
  
  Specifications
  
  Browser compatibility
  
   
    
     
      
        | 
       Desktop | 
       Mobile | 
      
      
        | 
       Chrome | 
       Edge | 
       Firefox | 
       Internet Explorer | 
       Opera | 
       Safari | 
       WebView Android | 
       Chrome Android | 
       Firefox for Android | 
       Opera Android | 
       Safari on IOS | 
       Samsung Internet | 
      
     
     
      
       HIDConnectionEvent | 
       89 | 
       89 | 
       No | 
       No | 
       75 | 
       No | 
       No | 
       No | 
       No | 
       No | 
       No | 
       No |