NavidK0 / SimpleGraphQL-For-Unity

A simple graphQL client that allows one to use .graphql files (or code) for queries, mutations, and subscriptions with Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mkuhr opened this issue · comments

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

What server are you using? Is this standard protocol?

commented

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

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.