sambaFrame.on('userJoined', (event) => {
const data = event.data;
if (data.type === 'local') {
console.log('You have joined the room');
} else {
console.log(data.user.name, 'has joined the room');
}
});
It is possible to subscribe multiple times to the same event with different callbacks.