handlePublish method
JSON RPC MESSAGE HANDLERS
Implementation
Future<bool> handlePublish(String topic, String message) async {
// If we want to ignore the message, stop
// print('handle publish');
if (await _shouldIgnoreMessageEvent(topic, message)) return false;
// Record a message event
await messageTracker!.recordMessageEvent(topic, message);
// Broadcast the message
onRelayClientMessage.broadcast(
MessageEvent(
topic,
message,
),
);
return true;
}