fix viz endstream (#13687)

This commit is contained in:
qazal
2025-12-15 03:54:18 -05:00
committed by GitHub
parent 7ef7ce2856
commit 50d34428bd

View File

@@ -817,7 +817,7 @@ async function main() {
const eventSource = new EventSource(ckey);
evtSources.push(eventSource);
eventSource.onmessage = (e) => {
if (e.data === "END") return eventSource.close();
if (e.data === "[DONE]") return eventSource.close();
const chunk = JSON.parse(e.data);
ret.push(chunk);
// if it's the first one render this new rgaph