publish method

Future<void> publish(
  1. String topic,
  2. String message
)

Returns a Future that completes when the node publishes a message to a PubSub topic.

Implementation

Future<void> publish(String topic, String message) =>
    _protocolManager.publish(topic, message);