endTime)}`;
            console.log('starting stream:', url);
            eventSource = new EventSource(url);
            
            eventSource.onmessage = (event) => {
                try {
                    const data = JSON.parse(event.data);
                    
                    if (data === 'keep-alive-text') {
                        return;
                    }
                    
                    if (data.timestamp && data.devices) {
                        console.log('appending frames