ring-jetty9-adapter icon indicating copy to clipboard operation
ring-jetty9-adapter copied to clipboard

Server-sent events support

Open sunng87 opened this issue 3 years ago • 7 comments

Attempt to add support for server-sent events(SSE) on current ring model, like how we supported websocket.

sunng87 avatar Dec 17 '21 15:12 sunng87

Any progress on this ?

rawoke083 avatar Jul 12 '22 15:07 rawoke083

I did some early investigation that SSE may not require adapter level support. It can be implemented via a library in ring ecosystem, like https://github.com/bobby/ring-sse/

I don't have real-world use case for SSE at the moment. Could you please check if the library work for you?

sunng87 avatar Jul 18 '22 02:07 sunng87

Thanks, I saw that library, it's 4 years since it's been last updated, also could not figure out how to hook it up to a normal ring-application. Once again there seems to be only cryptic code snippets. I've asked the author to provide a minimal working example 6 days ago, no joy this far.

Seems to be the common problem in Clojure, Either completely out of date libraries or these extreme short and cryptic code-snippets that should somehow be regarded as documentation or examples. :/

rawoke083 avatar Jul 18 '22 08:07 rawoke083