Kong/unirest-java

Is Unirest supported Server-Sent Events?

gzlboy opened this issue · 3 comments

Many AI APIs now require SSE calls. Does Unirest support it?

Not currently, it does support WebSockets, but not SSE. However there is no reason it cannot support SSE, so I will keep this issue as a feature request.

In the mean time, although I cannot vouch personally for it, this client from Cisco looks like it might be a good option: https://github.com/CiscoSE/commons-networking

Got it, looking forward to this feature, thanks!

Just putting the link to the spec here so I can stop googling for it https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events