PeerOptions constructor

PeerOptions({
  1. void logFunction(
    1. LogLevel level,
    2. dynamic message
    )?,
  2. String? host = PeerConfig.CLOUD_HOST,
  3. int? port = PeerConfig.CLOUD_PORT,
  4. LogLevel? debug = LogLevel.Disabled,
  5. String? path = '/',
  6. String? key = PeerConfig.DEFAULT_KEY,
  7. String? token,
  8. Map<String, dynamic>? config = PeerConfig.defaultConfig,
  9. bool secure = true,
  10. int? pingInterval,
})

Implementation

PeerOptions({
  this.logFunction,
  this.host = PeerConfig.CLOUD_HOST,
  this.port = PeerConfig.CLOUD_PORT,
  this.debug = LogLevel.Disabled,
  this.path = '/',
  this.key = PeerConfig.DEFAULT_KEY,
  this.token,
  this.config = PeerConfig.defaultConfig,
  this.secure = true,
  this.pingInterval,
}) {
  token = util.randomToken();
}