sendFileChatMessage method

  1. @override
void sendFileChatMessage({
  1. required MessageType type,
  2. required String fileLocalPath,
  3. required String room,
})
override

Implementation

@override
void sendFileChatMessage(
    {required MessageType type,
    required String fileLocalPath,
    required String room}) {
  File file = File(fileLocalPath);
  String fileChatTopic = room.toFileSendingTopic;
  clientHandler.sendFilePayload(file, fileChatTopic);
}