src/app/www/js/functions.js
/**
     * Setups httpEventSource when the network is available. Otherwise, trying
     * to access http://ESP32.local would lead to an error.
     */
Setups httpEventSource when the network is available.
Setups httpEventSource when the network is available .
enableWiFi() {
        this.httpEventSource = new EventSource(`http://${API.wiFi.espIP}/events`);
        for([event, callback] of this.listeners.entries()) {
            this.httpEventSource.addEventListener(event, callback, callback.options);
        }
    }
enableWiFi ( ) { this . httpEventSource = new EventSource ( ` ${ API . wiFi . espIP } ` ) ; for ( [ event , callback ] of this . listeners . entries ( ) ) { this . httpEventSource . addEventListener ( event , callback , callback . options ) ; } }
Setups httpEventSource when the network is available.
Setups httpEventSource when the network is available .