Skip to content

HTTP Streaming and Server-Sent Events (SSE) [SPR-12212] #16826

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-12212 and commented

Spring 4 SockJS support already provides an SEE transport that can be used even in browsers that don't support websocket.

The purpose of this ticket is to provide explicit support for Server-Sent Events in @RequestMapping methods in addition to the Callable and DeferredResult return types.

At present Callable and DeferredResult provide a simple way for a controller to produce a return value asynchronously once and then resume processing. This works for any annotated controller method and supports the full range of options, i.e. @ResponseBody or view resolution, handler interception, exception resolution, etc.

For SSE we'll need to support returning multiple values at different times. This will likely result very specifically in an HttpMessageConverter writing each value to the response.


Affects: 4.1 GA

Sub-tasks:

Issue Links:

Referenced from: commits 935ffc5, a32b5e6

5 votes, 12 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions