ditto-clients icon indicating copy to clipboard operation
ditto-clients copied to clipboard

[JS] Add Server Sent Events (SSE) implementation for Eclipse Dittos events

Open ffendt opened this issue 4 years ago • 0 comments

Currently the JS client only allows receiving events via WebSocket. We should also provide an implementation that uses the existing SSE API that is already provided by Eclipse Ditto.

Note: Main reason for this not being in the initial commit is, that the event-source-polyfill seemed to not work in web components that used the client. When implementing SSE, definitely test if the implementation works inside web components (e.g. a StencilJS web component)

ffendt avatar Sep 10 '19 05:09 ffendt