diff --git a/assets/controllers/notification_controller.js b/assets/controllers/notification_controller.js index 14ba3f9..65df6df 100644 --- a/assets/controllers/notification_controller.js +++ b/assets/controllers/notification_controller.js @@ -78,18 +78,16 @@ export default class extends Controller { // If closed, log it for debugging. try { if (this.eventSource.readyState === EventSource.CLOSED) { - console.log('Connection closed. Will retry...'); + console.log(); } else if (this.eventSource.readyState === EventSource.CONNECTING) { - console.log('Connection is reconnecting (CONNECTING).'); + console.log(); } else if (this.eventSource.readyState === EventSource.OPEN) { - console.log('Connection is open (OPEN).'); + console.log(); } } catch (e) { console.error('Error while checking EventSource state:', e); } }; - - console.log('EventSource connected to:', url.toString()); } catch (error) { console.error('Failed to connect to Mercure:', error); }