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.