function onMessage(sender, name, message) if message == 'joined' then Print(sender.name..’joined the room.') elseif message == 'left' then Print(sender.name..’left the room.') end end vci.message.On('notification', onMessage)