graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

IDEA: GraphQL Subscription on Server-sent events

Open AlexKenbo opened this issue 4 years ago • 9 comments

Are there any plans to add SSE?

AlexKenbo avatar Jun 04 '21 10:06 AlexKenbo

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.

elgordino avatar Jul 02 '21 11:07 elgordino

Same here. SSE as alternative would be great

Faridalim avatar Sep 13 '21 10:09 Faridalim

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...

obayemi avatar Jul 04 '22 08:07 obayemi

This would be great!

kantum avatar Sep 17 '22 16:09 kantum

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

elgordino avatar Feb 07 '23 10:02 elgordino

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

cbarlow1993 avatar Mar 04 '23 00:03 cbarlow1993

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.

frink avatar Apr 01 '24 05:04 frink

SSE Support:

  • gqlgen
  • graphql-mesh
  • wundergraph

but Hasura still "under construction" :(

comerc avatar Apr 11 '24 12:04 comerc