Skip to content

Commit

Permalink
feat(rtcstats): expose functionality to send identity data (jitsi#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-gavrilescu authored and subhamcyara committed Jul 19, 2024
1 parent ead51b6 commit 9573383
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions JitsiMeetJS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9573383

Please sign in to comment.