From bc6d341e6c2be1b64a967f36b0266fa3c93a4610 Mon Sep 17 00:00:00 2001 From: Andrei Gavrilescu <51706180+andrei-gavrilescu@users.noreply.github.com> Date: Wed, 15 Nov 2023 21:13:17 +0200 Subject: [PATCH] feat(rtcstats): expose functionality to send identity data (#2393) --- JitsiMeetJS.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JitsiMeetJS.ts b/JitsiMeetJS.ts index 3a78ef418b..23b616e367 100644 --- a/JitsiMeetJS.ts +++ b/JitsiMeetJS.ts @@ -200,6 +200,18 @@ export default { * Expose rtcstats to the public API. */ rtcstats: { + /** + * Sends identity data to the rtcstats server. This data is used + * to identify the specifics of a particular client, it can be any object + * and will show in the generated rtcstats dump under "identity" entries. + * + * @param {Object} identityData - Identity data to send. + * @returns {void} + */ + sendIdentityEntry(identityData) { + RTCStats.sendIdentity(identityData); + }, + /** * Sends a stats entry to rtcstats server. * @param {string} statsType - The type of stats to send.