requestSecret method
Implementation
Future<Uint8List> requestSecret({
required String fromParticipantId,
required String url,
required String type,
int timeout = 60 * 5,
String? delegateTo,
}) async {
final req = <String, dynamic>{
"url": url,
"type": type,
"participant_id": fromParticipantId,
"timeout": timeout,
if (delegateTo != null) "delegate_to": delegateTo,
};
final res = await room.sendRequest("secrets.request_secret", req);
if (res is FileResponse) {
return res.data;
}
throw RoomServerException("Invalid response received, expected FileResponse");
}