You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clients/web: use dedicated library to connect to SSE
The builtin EventSource class doesn't support to pass custom headers to the request, like Authorization.
From what I read, this class is somewhat deprecated and browser developers encourage to use `fetch` instead. The thing is, it's a much lower level API which doesn't do the work of reading and parsing the stream. Ref: whatwg/html#2177
I found `event-source-plus`, a library which does all that work on top of `fetch`.
0 commit comments