5

I would like to handle a Server Sent Events stream in Clojure. Does anyone know a small client library to just do that please ?

I was expecting to find something like https://github.com/stalefruits/gniazdo, which is for Websockets, but for SSE.

I could not find anything though and the only lib that may have been a good candidate is not maintained anymore https://github.com/clojurewerkz/ssese

thanks in advance ...

kaffein
  • 1,766
  • 2
  • 28
  • 54

2 Answers2

1

Here are some overviews on the topic:

Here is a highly voted comparison on StackOverflow between Server Sent Events and WebSockets (my favorite):

And here is a nice comparison from IBM (2017):

Alan Thompson
  • 29,276
  • 6
  • 41
  • 48
  • 3
    AFAICS whilst an interesting round up of links, none of this answers the OP question for a clojure SSE cloent library. – pete23 Jan 07 '19 at 11:41
0

immutant.web has support for SSE built in: http://immutant.org/documentation/current/apidoc/guide-web.html#h3155

There is also this middleware for other web servers: https://github.com/kumarshantanu/ring-sse-middleware, although I have not tried it myself.

ASRye
  • 19
  • 1
  • 1