strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Support for SSE in Subscriptions

Open csuriano23 opened this issue 2 years ago • 7 comments

Is there a way to implement subscriptions as SSE instead of WebSockets or do you plan to add some support in the near future?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

csuriano23 avatar Aug 12 '22 07:08 csuriano23

we don't have support for SSE just yet, but I'd love to have it :)

patrick91 avatar Aug 12 '22 07:08 patrick91

Hey, just checking in if someone has found an easy way to achieve this already.

elitepc avatar Jun 07 '23 12:06 elitepc

@elitepc not yet, this would need us to implement the SSE protocol, and we haven't started working on in it just yet

patrick91 avatar Jun 07 '23 12:06 patrick91

Wanted to +1 interest in this. A lot of folks are using websockets as the transport protocol for GraphQL subscriptions that stream chat responses (like from OpenAI's chat API) to their UIs, when really SSE should be sufficient :)

devennavani avatar Dec 22 '23 21:12 devennavani

@devennavani I've been working on implementing multipart subscriptions, would that work for you?

patrick91 avatar Dec 22 '23 22:12 patrick91

Wanted to +1 interest in this as well. We would really like to take advantage of SSE since its simpler and more lightweight for our usecases

omarzouk avatar Mar 06 '24 13:03 omarzouk

@omarzouk hopefully that's easy once I land #3076 :D

patrick91 avatar Mar 06 '24 13:03 patrick91