graphql-client
graphql-client copied to clipboard
Ask
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?
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
You can subscribe to GraphQLHttpClient.WebsocketConnectionState
https://github.com/graphql-dotnet/graphql-client/blob/master/src/GraphQL.Client/GraphQLHttpClient.cs#L41