sendEndpointTextMessage method
Sends a message via the data channel to
one particular participant or to all of them.
If the to
param is empty, the message
will be sent to all the participants in the conference.
In order to get the participantId for the to
parameter, the JitsiMeetEventListener.participantsJoined
event should be listened for, which have as a parameter the participantId and this should be stored somehow.
Implementation
Future<MethodResponse> sendEndpointTextMessage(
{String? to, required String message}) async {
return await JitsiMeetPlatform.instance
.sendEndpointTextMessage(to: to, message: message);
}