Repository navigation
feat: add Server-Sent Events API - #1546
Merged
Merged
Conversation
thboileau-git
approved these changes
Oct 19, 2026
jlouvel
added this pull request to stack #1548
October 20, 2026 12:42
jlouvel
force-pushed
the
feat/rpc-c7-sse-api
branch
6 times, most recently
from
October 20, 2026 13:32
4691473 to
19c383c
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Jerome Louvel <374450+jlouvel@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Jerome Louvel <374450+jlouvel@users.noreply.github.com>
jlouvel
force-pushed
the
feat/rpc-c7-sse-api
branch
from
October 20, 2026 13:32
19c383c to
46bfaa8
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds a blocking Server-Sent Events API on top of the Netty connectors (stacked on #1544).
ServerSentEvent: immutable event value type (id,event,data,retry, comment) with field validation.EventStreamRepresentation:text/event-stream(UTF-8) representation whose writer gets anEventSink; eachsendencodes and flushes the event. Optional comment heartbeats at a configurable interval.EventStreamReader: blocking parser/iterator of events, with anEventStreamSourcemode that reconnects after EOF, honoringretry:and passing the last event ID (forLast-Event-ID).Request.getLastEventId()andMediaType.TEXT_EVENT_STREAM.server.maxEventStreamsparameter (extra streams get 503), and open event streams are exempt fromconnector.idleTimeout.Validation
./mvnw -B -pl org.restlet verify -P default,testpassed.EventStreamTestCaseandEventStreamConnectorTestCase(per-event delivery before completion over HTTP/1.1 and HTTP/2, stream limit and permit release,Last-Event-ID, idle-timeout exemption).