spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.63k stars 38.13k forks source link

Framework SSE documentation #33041

Closed krezovic closed 4 months ago

krezovic commented 4 months ago

Affects: 6.1.9

I am aware that Spring Framework supports SSE (Server Sent Events) in Spring WebMvc and Spring WebFlux, but I am unable to find any mention whatsoever in the official documentation. All that Google returns are links to 3rd party sites which may be outdated, and some of them link back to official documentation where SSE documentation was supposed to be or has been at some point.

A nice example would be at least how to use SseEmitter class from spring-web(mvc?) package.

bclozel commented 4 months ago

We do have a section about SseEmitter. See https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-ann-async.html#mvc-ann-async-sse

We cannot maintain samples for all features we support unfortunately.