Jim,
I think we definitely need a clarification, and in addition, perhaps even better control over re-connects. The Javadoc for SseEventSource talks about “connection loss” in the context of re-connects. I can see how this could be open to interpretation, which is proven by your experiments with different implementations.
I’m not sure it makes sense to always reconnect when a connection is gracefully closed (but I think you’re correct about the spec and the browser behavior). We could potentially extend SseEventSource.Builder to accept a re-connect policy such as Always, OnError and Never.
Could you file an issue for this?
— Santiago
Santiago,
If jaxrs EventSource reconnection only happens for unexpected connection close which is different from html5 _javascript_ api, it would be better to add some documentation to clarify this. WDYT ?
Thanks,
Jim
_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jaxrs-dev