hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
30.95k stars 2.74k forks source link

IDEA: GraphQL Subscription on Server-sent events #7010

Open AlexKenbo opened 3 years ago

AlexKenbo commented 3 years ago

Are there any plans to add SSE?

elgordino commented 3 years ago

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 commented 2 years ago

Same here. SSE as alternative would be great

obayemi commented 2 years ago

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 commented 1 year ago

This would be great!

elgordino commented 1 year ago

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

cbarlow1993 commented 1 year ago

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

frink commented 3 months ago

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 commented 2 months ago

SSE Support:

but Hasura still "under construction" :(