feat: add EventSource factory for SSE
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
export function createEventStream(token: string): EventSource {
|
||||||
|
return new EventSource(`/api/sse/stream?token=${encodeURIComponent(token)}`)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user