Sorta related: you add a newline at the end of the data read via SSE in
the client, but that's not correct: the NL should only be added if you
have more than one 'data' field after another.
And similarly, you should really do some escaping when serialising SSE
data, because \n and \r are special chars. I'm pretty sure as it is,
it's not valid SSE.
On 01/09/17 17:18, Stephane Epardaud wrote:
What's the purpose of SseEventSource.register(... Runnable onComplete)
? It doesn't appear to ever be called, and even if the server closes
the connection, it doesn't get called because the client reconnects
forever (which is _not_ what I was expecting at all).
resteasy-dev mailing list