BaseWebSocket constructor

BaseWebSocket(
  1. String url, {
  2. Duration ping = const Duration(seconds: 5),
  3. bool allowSelfSigned = true,
})

Implementation

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