cancel method

Future<void> cancel(
  1. String path,
  2. MeshDocument thread
)

Implementation

Future<void> cancel(String path, MeshDocument thread) async {
  for (final participant in getOnlineParticipants(thread)) {
    if (participant is RemoteParticipant && participant.role == "agent") {
      await room.messaging.sendMessage(to: participant, type: "cancel", message: {"path": path});
    }
  }
}