-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Add a heartbeat executor for SSE #33355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Comments
Torres-09
added a commit
to Torres-09/spring-framework
that referenced
this issue
Sep 23, 2024
This commit adds test cases to verify the heartbeat (ping) feature in SseEmitter. The tests ensure that heartbeat messages are sent at the specified interval and that they stop after the emitter is completed. See: spring-projectsgh-33355
Torres-09
added a commit
to Torres-09/spring-framework
that referenced
this issue
Sep 23, 2024
This commit introduces the heartbeat (ping) feature in SseEmitter. It allows the server to send periodic heartbeat messages to the client at a specified interval to keep the connection alive and detect client disconnects. Heartbeat messages are sent as comments (":heartbeat") and stop when the emitter is completed, times out, or encounters an error. See: spring-projectsgh-33355
Superseded by #34878. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
It looks like the general recommendation about SSE is to send messages at fixed interval to clients to probe the connection health (see #18523 (comment)).
Could Spring add this feature?
The text was updated successfully, but these errors were encountered: