PeerOptions constructor
PeerOptions({
- void logFunction(
- LogLevel level,
- dynamic message
- String? host = PeerConfig.CLOUD_HOST,
- int? port = PeerConfig.CLOUD_PORT,
- LogLevel? debug = LogLevel.Disabled,
- String? path = '/',
- String? key = PeerConfig.DEFAULT_KEY,
- String? token,
- Map<
String, dynamic> ? config = PeerConfig.defaultConfig, - bool secure = true,
- 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();
}