Skip to content
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

IDEA: GraphQL Subscription on Server-sent events #7010

Open
AlexKenbo opened this issue Jun 4, 2021 · 8 comments
Open

IDEA: GraphQL Subscription on Server-sent events #7010

AlexKenbo opened this issue Jun 4, 2021 · 8 comments

Comments

@AlexKenbo
Copy link

Are there any plans to add SSE?

@elgordino
Copy link
Contributor

I second this request.

I need to support subscriptions for clients that do not allow websockets, usually because a corporate firewall drops them. I currently have code that works around this by repeatedly performing query over http but it is less reliable that I would like. It would be great if Hasura could offer a solution for subscriptions over regular HTTP.

@Faridalim
Copy link

Same here. SSE as alternative would be great

@obayemi
Copy link

obayemi commented Jul 4, 2022

Hello, I would love / need to have sse support for subscription in hasura too, I am ready to try and implement it myself, could some dev from the project give me some pointers on how to approach that challenge ?
I'm not very familliar with haskell nor the projet, I tried to look for the implementation of websockets as reference but had trouble finding it...

@kantum
Copy link

kantum commented Sep 17, 2022

This would be great!

@elgordino
Copy link
Contributor

Can anyone from Hasura comment as to whether this is under consideration?

@cbarlow1993
Copy link

I'd also like to hear whether this is on the roadmap anytime soon.

@frink
Copy link

frink commented Apr 1, 2024

There is a pretty good spec now at graql-sse. It is a simpler transport and several of the newer GQL providers are including support. However, this has not been noisy enough to attract attention.

@enisdenjo started the campaign in ticket #6264 about a year before this ticket so maybe there is hope for eventual support of SSE. Would certainly make writing clients easier. However, as far as I know Hasura does everything with HTTP/1.1 so it would actually be a pretty big upgrade to HTTP/2.

@comerc
Copy link
Contributor

comerc commented Apr 11, 2024

SSE Support:

  • gqlgen
  • graphql-mesh
  • wundergraph

but Hasura still "under construction" :(

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

No branches or pull requests

9 participants