publish method

void publish(
  1. Message message
)

Publishes a message to be received by any subscribers.

If there are no subscripbers to the messange name, this method will do nothing.

Implementation

void publish(Message message);