zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 622 forks source link

Add subscription pusher example to docs #868

Open SimonErich opened 3 years ago

SimonErich commented 3 years ago

Is your feature request related to a problem? Please describe. I am trying to implement graphql_flutter subscriptions, but I cannot seem to find a way to make it work with pusher. Or better said: I don't know where to start. Can I just pass along the pusher websocket url? Or do I need to create a PusherLink class, that abstracts pusher here?

Describe the solution you'd like Since Pusher is one of (if not the) most widely used services, it would be awesome if you could include an example for it, or at least a more elaborate example how a generic service can be included. https://www.apollographql.com/docs/react/api/link/introduction/#creating-a-custom-link

mattsrobot commented 1 year ago

I too am looking for examples on this, whilst I can see Pusher itself has a client library for Flutter, it does not support macOS and Windows. I'm hoping there's a solution.

vincenzopalazzo commented 1 year ago

PRs are welcome if someone has working with it