Options for updating permission config.
await updatePermissionConfig({
socket,
config: {
level0: { useMic: "disallow", useCamera: "disallow", useScreen: "disallow", useChat: "allow" },
level1: { useMic: "allow", useCamera: "allow", useScreen: "allow", useChat: "allow" },
},
member: "currentUser",
islevel: "2",
roomName: "room123",
showAlert: (alert) => console.log(alert.message),
});
Updates the permission configuration for the room. Only hosts (islevel === "2") can update the configuration.