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 620 forks source link

ws: add integration testing to support the new ws protocol #1125

Open vincenzopalazzo opened 2 years ago

vincenzopalazzo commented 2 years ago

We need to come up with an idea on how to test the new was protocol https://github.com/zino-hofmann/graphql-flutter/pull/1060 one possibility is to write a dart server and spin up this server with the CI

Or develop a generic mock server, and release it with the Docker image.

Any other ideas?

vincenzopalazzo commented 2 years ago

Implementing architecture here https://github.com/vincenzopalazzo/keep-safe-graphql to tracking!

rdehuyss commented 2 years ago

Hi @vincenzopalazzo , first of all - thanks for this great library. Question: is there a way to test the new ws protocol already?

We're currently running on Apollo (NodeJS) with the new ws protocol in our webapp. We would also like to use the subscriptions in our Flutter Mobile App. I noticed that this will be part of release 5.2.0. Is there a branch we can use to already test it?

vincenzopalazzo commented 2 years ago

Hi @rdehuyss,

We have the release for this process, you can use the latest beta

rdehuyss commented 2 years ago

Hi @vincenzopalazzo - thanks for the idea (I was under the impression this would only be part of the 5.2 beta's).

Anyway, I can say that for us, the subscriptions seem to be working. We will do further testing and report back.