gazuntype / graphQL-client-unity

This repository houses a unitypackage that can be included in your Unity Project to enable it communicate with a graphQL server.
Apache License 2.0
292 stars 49 forks source link

Are we opening a new websocket for each subscription #16

Open mailyokesh opened 4 years ago

mailyokesh commented 4 years ago

From your example looks like after I call Subscribe its its returning ClientWebSocket. So if I have 10 subscriptions running simultaneously does that mean am opening 10 websocket to the server? From apollo docs looks like they open one websocket and all subscriptions are handled using that one websocket https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md . Can you please clarify?

RWOverdijk commented 4 years ago

I am also curious about this. I don't think that's the case though, that would be curious 😄

Update: The readme does say:

The Subscribe function can take in a couple of arguments. socketId is the id you want to give the particular websocket.

Which I find strange

Update 2: How is this lib different from https://github.com/graphql-dotnet/graphql-dotnet btw 🤔