publish method

  1. @override
Future<void> publish({
  1. required String topic,
  2. required String message,
  3. RelayerPublishOptions? opts,
})
override

Implementation

@override
Future<void> publish({
  required String topic,
  required String message,
  RelayerPublishOptions? opts,
}) async {
  _isInitialized();
  await publisher.publish(topic: topic, message: message, opts: opts);
  await _recordMessageEvent(
      RelayerMessageEvent(message: message, topic: topic));
}