sendChatMessage method

  1. @override
void sendChatMessage(
  1. ChatMessage message,
  2. String bareRoom
)
override

Implementation

@override
void sendChatMessage(ChatMessage message, String bareRoom) {
  var messagePayload = jsonEncode(message.toJson());

  String chatTopic = bareRoom.toChattingTopic;
  clientHandler.sendPayload(messagePayload, chatTopic);
}