Relayer constructor
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);
}