nodeSolidServer / solid-auth-client

A browser library for performing authenticated requests to Solid pods
https://solid.github.io/solid-auth-client/
MIT License
95 stars 42 forks source link

EventSource support #116

Closed boulderwebdev closed 5 years ago

boulderwebdev commented 5 years ago

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) {
  //...
}
RubenVerborgh commented 5 years ago

Needs to be tackled on spec level first.

elf-pavlik commented 5 years ago

Existing discussion in: https://github.com/solid/solid-spec/issues/123