graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Ask

Open frankl1m opened this issue 1 year ago • 2 comments

How can implement that after send graphQLClient.InitializeWebsocketConnection can verify if successfully connected or can verify if sockets is not close or similar, can give a example code?

frankl1m avatar Aug 07 '22 08:08 frankl1m

I mean any connection loss handle bcz when network fail or similar cannot reconnect again and cannot verify if subscription is working or not after socket is closed

frankl1m avatar Aug 07 '22 11:08 frankl1m

You can subscribe to GraphQLHttpClient.WebsocketConnectionState

https://github.com/graphql-dotnet/graphql-client/blob/master/src/GraphQL.Client/GraphQLHttpClient.cs#L41

rose-a avatar Aug 08 '22 09:08 rose-a