Server-Sent Events with Caché/HealthShare/Ensemble and angularjs
Has anyone tried using Server-Sent Events with Caché/HealthShare/Ensemble and angularjs?
Comments
I haven't dealt with SSEs yet, but I can say that WebSockets work like a charm.
SSEs are not using a special protocol, they work within the HTTP specification and are build on the server by setting the "Content-Type" header to "text/event-stream". From my understanding, this can be easily implemented with a CSP page.
The reasons why SSEs are not as popular as WebSockets are:
- a WS is bidirectional
- WS are supported by all major browsers, while SSEs are not supported by IE and Edge (http://caniuse.com/#search=server-sent%20event)
SSEs have some interesting advantages over WS like the use of a simpler protocol, automatic reconnection, and event IDs.
Greetings,
I am calling Validic from Ensemble using an outbound adapter and it all works like a charm. Now, they are changing their api to use HTTP Streams (Server-sent events) where they say the connection should be always open!
I can’t find any docs on that and so wonder if you have any suggestions?
Thanks,
Everardo
Greetings,
I am trying to use Ensemble with Validic 2.0 where they use Server-Sent Events (SSE) but I have no idea where to start! Any help would be greatly appreciated!
Thank you,
Everardo
@Randy Stewart
did you ever get SSE working with CSP? Trying to implement Data-Star with CSP, and cannot for the life of me seem to get a GET stream to stay open and actually stream, lol.