Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rtcstats): expose functionality to send identity data #2393

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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