// isRoomBusy check if there is any running sessions.
// TODO: If we remove sessions from room anytime a session is closed,
// we can check if the sessions list is empty or not.
isRoomBusy check if there is any running sessions.
TODO: If we remove sessions from room anytime a session is closed,
we can check if the sessions list is empty or not.
// isRoomBusy check if there is any running sessions . // TODO : If we remove sessions from room anytime a session is closed // we can check if the sessions list is empty or not .
func (h *Handler) isRoomBusy(roomID string) bool {
	if roomID == "" {
		return false
	}
	r, ok := h.rooms[roomID]
	if !ok {
		return false
	}
	return r.IsRunningSessions()
}
func ( h * Handler ) isRoomBusy ( roomID string ) bool { if roomID == " " { return false } r , ok := h . rooms [ roomID ] if ! ok { return false } return r . IsRunningSessions ( ) }
isRoomBusy check if there is any running sessions.
isRoomBusy check if there is any running sessions .
// If no roomID is registered