Skip to content

Commit 4d889c8

Browse files
docs: correct how the SSE push transport fails when disabled (#6766)
Documentation for vaadin/flow#27195 by `@totally-not-ai`[bot]. > [!NOTE] > The source pull request is merged, so this documentation describes the final > shape of the change. Please review it and mark it ready for review. **Change categories:** BEHAVIOR_CHANGE | File | Change | |------|--------| | `articles/flow/advanced/server-push.adoc` | The Server-Sent Events section said that selecting the experimental transport while its feature flag is disabled throws a `DisabledFeatureException`. That's still true for `PushConfiguration.setTransport()`, but a `@Push(transport = Transport.SERVER_SENT_EVENTS)` annotation on the application shell or a web component exporter now fails application startup instead, since the annotation is read before any UI exists. The paragraph now distinguishes the two cases, right above the code example it corrects. | Auto-generated by the Documentation Bot — review before merging. > Generated by [Documentation Bot](https://github.com/vaadin/flow/actions/runs/45446272345) for #27195 · agent · 81.2 AIC · ⊞ 11.7K · [◷](https://github.com/search?q=repo%3Avaadin%2Fdocs+%22gh-aw-workflow-id%3A+doc-bot%22&type=pullrequests) > - [x] expires <!-- gh-aw-expires: 2026-12-24T17:35:50.783Z --> on Dec 24, 2026, 5:35 PM UTC <!-- gh-aw-agentic-workflow: Documentation Bot, engine: claude, model: agent, id: 45446272345, workflow_id: doc-bot, run: https://github.com/vaadin/flow/actions/runs/45446272345 --> <!-- gh-aw-expires-type: pull-request --> <!-- gh-aw-workflow-id: doc-bot --> <!-- gh-aw-workflow-call-id: vaadin/flow/doc-bot --> --------- Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
1 parent c1cdb3e commit 4d889c8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎articles/flow/advanced/server-push.adoc‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public class Application implements AppShellConfigurator {
116116

117117
`Transport.SERVER_SENT_EVENTS` streams server-to-client messages using the browser's `EventSource` API, while client-to-server messages are sent as regular XHR requests. It can help when running behind proxies or firewalls that allow plain HTTP streaming but block WebSocket connections.
118118

119-
This transport is experimental and requires enabling the `ssePushTransport` feature flag; see <<{articles}/flow/configuration/feature-flags#,Feature Flags>>. Selecting it while the feature flag is disabled throws a `DisabledFeatureException`.
119+
This transport is experimental and requires enabling the `ssePushTransport` feature flag; see <<{articles}/flow/configuration/feature-flags#,Feature Flags>>.
120+
121+
A `@Push` annotation can select this transport on the application shell, or on a <<{articles}/flow/integrations/embedding/push#,web component exporter>>. While the feature flag is disabled, either one prevents the application from starting with an [classname]`InvalidApplicationConfigurationException`. Its message says where the annotation is and how to enable the flag. Selecting the transport by calling [methodname]`PushConfiguration.setTransport()` while the feature flag is disabled throws a [classname]`DisabledFeatureException` instead.
120122

121123
[source,java]
122124
----

0 commit comments

Comments
 (0)