Relayer constructor

Relayer({
  1. required ICore core,
  2. Logger? logger,
  3. String? relayUrl,
  4. String? projectId,
})

Implementation

Relayer({
  required this.core,
  Logger? logger,
  String? relayUrl,
  this.projectId,
})  : events = EventEmitter(),
      logger = logger ?? Logger(),
      relayUrl = relayUrl ?? RELAYER_DEFAULT_RELAY_URL,
      messages = MessageTracker(core: core, logger: logger),
      name = RELAYER_CONTEXT,
      transportExplicitlyClosed = false {
  subscriber = Subscriber(relayer: this, logger: logger);
  publisher = Publisher(relayer: this, logger: logger);
}