modifyCoHostSettings

Modifies the co-host settings for a specified room.

This function allows updating the co-host settings by selecting a participant, setting co-host responsibilities, and emitting an update event via socket.

If the room is in demo mode, an alert is shown instead.

Example:

val options = ModifyCoHostSettingsOptions(
roomName = "mainRoom",
showAlert = { alert -> Logger.d("ModifyCoHostSettings", alert.message) },
selectedParticipant = "User123",
coHost = "No coHost",
coHostResponsibility = listOf(CoHostResponsibility(name = "media", value = true)),
socket = socketInstance
)

modifyCoHostSettings(options)
// Updates co-host settings and emits the event to the server.