-
Notifications
You must be signed in to change notification settings - Fork 312
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
Subscription with SSE #309
Comments
Although there is no specification for SSE, I think it is the simple way to get subscription support in a Spring MVC project. |
No plans to support SSE as there is no spec. Yes it can be done, but SSE by itself is only a way to define messages, like WebSocket. For example, there is no way to map error and completion signals from a Subscription GraphQL for WebSocket also defines ping and pong messages which is important for connectivity issues with long running streams. For the time being, while there is no spec, we have no plans to support it. |
It might be a good time to reconsider it. For Websockets, Spring utilizes the specification found at https://github.com/graphql/graphql-over-http/blob/main/rfcs/GraphQLOverWebSocket.md. Regarding SSE, we've had a specification available for the past year at https://github.com/graphql/graphql-over-http/blob/main/rfcs/GraphQLOverSSE.md. (from the same guy who work on graphql-ws) It appears that SSE offers several advantages for various use cases when compared to Websockets. Is it possible to consider its implementation in light of these new developments? |
Thanks for the pointer. Yes, we can add an option for SSE. |
Are you planning to add support for subscriptions over Server-Side Event?
Many thanks & regards
The text was updated successfully, but these errors were encountered: