nodeSolidServer/solid-auth-client

EventSource support

Closed this issue · 2 comments

There should be support for the EventSource API using solid's fetch. This could be accomplished by implementing a polyfill within the solid-auth-client similar to this library. I imagine this API would look something like

const events = solid.EventSource("myapi.example.com/sse/", {withCredentials: true})
events.onmessage = function(e) {
  //...
}

Needs to be tackled on spec level first.