publish abstract method

Future<int> publish(
  1. String channel,
  2. String message
)

Posts a message to the given channel.

Returns the number of clients that received the message.

Implementation

Future<int> publish(String channel, String message);