localUser

Gives you information about the local user who is inside the room.

const user = sambaFrame.localUser;
console.log('Local user is:', user);

/*Here is how the JSON user object looks like:
{
   "id": "08c82f56-c670-4d36-bfe3-87a8cd0f7f29",
   "name": "John",
   "avatarColor": "#90c695",
   "role": "moderator",
   "kind": "local"
}*/

Last updated