Written by

Sales Engineer at InterSystems
Question Randy Stewart · Jul 27, 2016

Server-Sent Events with Caché/HealthShare/Ensemble and angularjs

Has anyone tried using Server-Sent Events with Caché/HealthShare/Ensemble and angularjs?

Comments

Stefan Wittmann · Jul 28, 2016

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:

SSEs have some interesting advantages over WS like the use of a simpler protocol, automatic reconnection, and event IDs.

0
Everardo Cunha · May 30, 2019

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

0
Everardo Cunha · Jun 24, 2019

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

0
Anthony Master · Mar 28

@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.

0