Absinthe Subscriptions under HTTP2

Hello everyone, quick question

Is there a possibilty of running the Absinthe Subscriptions using the HTTP2 SSE feature instead of leveraging websockets?

You could probably setup your own. Take a look at Absinthe.Phoenix.Socket implementation, it’s not that complicated. You could swap some things around to make ot work with SSE.

The main challenge I imagine would be to find a way to reuse the same process for multiple subscriptions, to avoid creating too many unnecessary connections. But you could possibly associate it with the user’s session in some way.

A tip I would give is to ignore the reuse of the “context” as in the Absinthe’s implementation, as in most use cases it is really no necessary.