Skip to content

feat: add Server-Sent Events as a push transport option#24484

Draft
Artur- wants to merge 1 commit into
mainfrom
feature/sse2
Draft

feat: add Server-Sent Events as a push transport option#24484
Artur- wants to merge 1 commit into
mainfrom
feature/sse2

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented May 30, 2026

Expose Atmosphere's existing SSE support through Flow's Transport enum so applications can opt in with @Push(transport = SERVER_SENT_EVENTS) or PushConfiguration#setTransport. SSE is unidirectional at the transport level: the browser receives server messages via EventSource and sends client-to-server messages over XHR, which the existing PushAtmosphereHandler already routes correctly.

Adds BasicPushSseView/IT and PushConfigurationSseIT mirroring the WebSocket pair for end-to-end coverage.

Fixes #23048

Expose Atmosphere's existing SSE support through Flow's Transport enum
so applications can opt in with @Push(transport = SERVER_SENT_EVENTS)
or PushConfiguration#setTransport. SSE is unidirectional at the
transport level: the browser receives server messages via EventSource
and sends client-to-server messages over XHR, which the existing
PushAtmosphereHandler already routes correctly.

Adds BasicPushSseView/IT and PushConfigurationSseIT mirroring the
WebSocket pair for end-to-end coverage.
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test Results

 1 430 files  ±0   1 430 suites  ±0   1h 24m 8s ⏱️ -36s
10 054 tests +2   9 986 ✅ +2  68 💤 ±0  0 ❌ ±0 
10 526 runs  +2  10 457 ✅ +2  69 💤 ±0  0 ❌ ±0 

Results for commit 7a62a78. ± Comparison against base commit b238ec1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a Push transport mode utilizing SSE

1 participant