graphqlws icon indicating copy to clipboard operation
graphqlws copied to clipboard

Needs a working pubsub example

Open ghost opened this issue 6 years ago • 1 comments

The title is self-explanatory. I am still unsure how to integrate this with and pubsub mechanism, such as DB pubsubs and RabbitMQ.

ghost avatar Jul 12 '18 00:07 ghost

Took me awhile to digest a way to do this and not a lot of usage to pull from.

I came across graphql-subscription-server which uses graphqlws to hook into the subscribing and publishing in a way that allows you to use it configure it like a pubsub.

I was able to eventually use a similar approach to publish events that are matches to listening subscriptions and it works well, but unfortunately I haven't found a way to defer the subscription and connection state to something else (i.e. Redis).

It would be great to extend this capability so that I don't lose connection state if I lose the process, deploy, etc.

EIrwin avatar Dec 15 '19 14:12 EIrwin