sendMessage method

Future<ChannelMessageAck> sendMessage({
  1. required String channelId,
  2. required Map<String, String> content,
})

Implementation

Future<ChannelMessageAck> sendMessage({
  required String channelId,
  required Map<String, String> content,
}) async {
  final res = await _send<rtpb.ChannelMessageAck>(rtpb.Envelope(
      channelMessageSend: rtpb.ChannelMessageSend(
    channelId: channelId,
    content: jsonEncode(content),
  )));

  return ChannelMessageAck.fromDto(res);
}