Fork me on GitHub
#off-topic
<
2021-07-17
>
Ben Sless07:07:29

Anyone here ever consumed SSE events with a HTTP client? Preferably on the JVM

Ivar Refsdal11:07:49

I haven't, but here is a Clojure lib for consuming SSE events: https://github.com/cjohansen/clj-event-source written by @U9MKYDN4Q

Ben Sless11:07:20

Neat, thanks!

👍 2
Ben Sless08:07:49

I'd prefer not to shell out to cURL. It should be possible to get back an event stream from a http client, such as in https://github.com/CiscoSE/commons-networking

👍 3
Ben Sless09:07:34

This implementation is incomplete, though, so if you know how I can use any of the http clients, Hato, for example, to get back a stream and consume it as SSE it would be cool