Open sunng87 opened 2 years ago
Any progress on this ?
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?
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. :/
I'm surprised SSE doesn't seem to work. Does other forms of streaming HTTP responses work?
edit: By the way, the original ring project is upgrading to Jetty 11 now: https://github.com/ring-clojure/ring/pull/481 ...still alpha, but SSE seems to work.
Did you see any error log, or error behavior with SSE on this adapter? I might be able to create a fix for that.
It seems to go silent, no error, and no HTTP response. Then after a while the connection closes.
Attempt to add support for server-sent events(SSE) on current ring model, like how we supported websocket.