updateMemberMeta
updateMemberMeta
- updateMemberMeta(
params):Promise<void>
Updates a member’s metadata in only the specified fields. This is different from setMemberMeta, which replaces the whole metadata object.
Parameters
params
Object containing the parameters of the method.
memberId
ID of the member to affect. If omitted, affects the current member.
meta
The update to the metadata.
Returns
Promise<void>
Example
In this example, we set metadata for a member as soon as they join the room.
After 5 seconds, we update the metadata for that member.
This example assumes that there is a RoomSession
already active and that members are joining the room.