publish method

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

publish

Implementation

Future<int> publish(String channel, Object message) async {
  return await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).publish(channel, message))
        .toInteger()
        .payload;
  });
}