feat: add EventSource factory for SSE

This commit is contained in:
Kirill
2026-05-22 18:39:10 +05:00
parent 4381121f25
commit a84045a68d
+3
View File
@@ -0,0 +1,3 @@
export function createEventStream(token: string): EventSource {
return new EventSource(`/api/sse/stream?token=${encodeURIComponent(token)}`)
}