Skip to content

feat(server): run playground subscriptions over SSE on SSE-only servers - #111

Merged
patrickkabwe merged 3 commits into
mainfrom
feat/playground-sse
Nov 10, 2026
Merged

patrickkabwe merged 3 commits into
mainfrom
feat/playground-sse

Conversation

@patrickkabwe

Copy link
Copy Markdown
Contributor

The bundled playground now subscribes over SSE when sse.New() is registered without a WebSocket transport. WebSocket stays the default otherwise.

Tested in the browser against SSE-only servers (shared and separate subscription paths) and the WebSocket subscriptions example.

The playground always subscribed over WebSocket, so a server registering
only sse.New() had no working subscriptions in GraphiQL. Pick graphql-sse
when the SSE transport is registered without the WebSocket one; WebSocket
remains the default in every other case.
examples/sse registers sse.New() as the only subscription transport and
shows a self-terminating countdown stream plus pub/sub notifications.
…gistered transports

Drop the playgroundSSE field and inspect the server's transport chains
when the playground is served instead.
@patrickkabwe
patrickkabwe merged commit dc14a0f into main Nov 10, 2026
4 checks passed
@patrickkabwe
patrickkabwe deleted the feat/playground-sse branch November 10, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant