BaseWebSocket constructor
      
      BaseWebSocket(})
     
    
    
Implementation
BaseWebSocket(
  this.url, {
  this.ping = const Duration(seconds: 5),
  this.allowSelfSigned = true,
}) {
  throw 'To use sockets you need dart:io or dart:html';
}