NavidK0 / SimpleGraphQL-For-Unity

A simple graphQL client that allows one to use .graphql files (or code) for queries, mutations, and subscriptions with Unity.
MIT License
34 stars 18 forks source link

Subscriptions didn't work with my GraphQL Server until I added an empty Payload to the connection init. #33

Closed mkuhr closed 3 years ago

NavidK0 commented 3 years ago

What server are you using? Is this standard protocol?

mkuhr commented 3 years ago

it was https://dgraph.io/ and same behaviour on the selfhosted one in docker. I dont know about subscription ws protocoll standards. had to find out why it wasnt working using wireshark and graphiql.

The difference is in my title. Your Plugin didnt send the empty payload and all graphiql did.

This plugin rocks. Thanks for it

NavidK0 commented 3 years ago

it was https://dgraph.io/ and same behaviour on the selfhosted one in docker. I dont know about subscription ws protocoll standards. had to find out why it wasnt working using wireshark and graphiql.

The difference is in my title. Your Plugin didnt send the empty payload and all graphiql did.

This plugin rocks. Thanks for it

I asked because I'm not sure about the subscription WS protocol standards either. 😅 Thanks for the additional information! It helps a lot. It seems like a bug on our end, so we can get it fixed.

This change probably shouldn't affect any other kinds of graphql servers either.