• Gets the current monitoring configuration

    Retrieves a copy of the current monitoring configuration settings. This includes all polling intervals, backoff parameters, and other monitoring behavior settings. The returned object is a deep copy to prevent external modifications of internal state.

    This function is useful for:

    • Inspecting current monitoring settings
    • Modifying specific parameters while preserving others
    • Persisting configurations for user preferences
    • Debugging monitoring behavior issues

    Returns PlaybackMonitorConfig

    A complete copy of the current monitoring configuration

    // Get current config and modify only one parameter
    const config = getMonitoringConfig();
    setMonitoringConfig({
    ...config,
    pollingInterval: 2000
    });
    export function getMonitoringConfig(): PlaybackMonitorConfig {
    return { ...currentConfig };
    }