Allows you to associate custom data with the local participant and share that with other participants. The data is stored in the
userData property in the
DailyParticipant object corresponding to the local participant and will replace any value already there.
A participant can only set their own local data. They cannot set other participants’ user data.
userData is an optional field on a
DailyParticipant and defaults to not existing. You can remove the field from the object at any time by setting the data back to
data argument should be an object that:
- is serializable to JSON
- has a max payload size of 4k characters
Returns a Promise which resolves to the
userData that was set.
setUserData() are rate limited. All calls will update the local copy of
userData immediately. However,
synchronization across participants is rate limited, with assurance that all participants end with the same
You can access
userData on a participant via
For more information, see the