Skip to content

Commit

Permalink
feat(rtcstats): expose functionality to send identity data (#2393)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-gavrilescu authored Nov 15, 2023
1 parent 1b38128 commit bc6d341
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 bc6d341

Please sign in to comment.