graphQL-client-unity icon indicating copy to clipboard operation
graphQL-client-unity copied to clipboard

Are we opening a new websocket for each subscription

Open mailyokesh opened this issue 5 years ago • 1 comments

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?

mailyokesh avatar Aug 07 '20 00:08 mailyokesh

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 🤔

RWOverdijk avatar Aug 17 '20 22:08 RWOverdijk