Fork me on GitHub
#reitit
<
2022-11-26
>
BorisKourt14:11:57

Hey, has anyone used https://github.com/bobby/ring-sse or https://github.com/kumarshantanu/ring-sse-middleware [0] with Reitit, or is there another alternative? I am trying to get a quick test together with Undertow, and they have https://github.com/undertow-io/undertow/blob/master/examples/src/main/java/io/undertow/examples/sse/ServerSentEventsServer.java but it is a challenge for me to fit into ring/reitit. I know pedestal has built in and documented support, but I cannot use it at the moment. [0]: Which doesn't explicitly support Undertow.

valerauko04:11:56

if you don't mind playing around with alpha stuff there's metosin/pohjavirta which is a wrapper around undertow

BorisKourt15:11:06

I've been tracking it but it doesn't directly solve my problem here. I think regular old undertow can do SSE, I just don't know what the best approach is. Or if there is a better library/example that works with ring and reitit than the two listed.