sendMessage method
Sends a chat message to everyone, encrypted like everything else.
Implementation
Future<void> sendMessage(String text) async {
final id = Random.secure().nextInt(1 << 32).toRadixString(36);
final body = jsonEncode({'id': id, 'text': text.length > 1000 ? text.substring(0, 1000) : text});
await room.localParticipant?.publishData(utf8.encode(body), reliable: true, topic: _chat);
}