graphql-dotnet / graphql-dotnet/graphql-client

Upgrade from 4.0.2 to 6.0.1 results in InitializeWebsocketConnection() error

Open
#599 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
648
Forks
136
PR merge metrics
No merged PRs in 30d

Description

I am using GraphQL.Client for .NET Standard to connect aws AppSync, but the connection is occasionally disconnected.

I have following code to check connection status

`_graphQlClient.WebsocketConnectionState.Subscribe(state =>
{
_isWebSocketConnected = state == GraphQL.Client.Abstractions.Websocket.GraphQLWebsocketConnectionState.Connected;
});`

The above code cannot find the status change until I do something on aws AppSync api.

In this case, we have to reset aws ApSync api by changing the settings or changing the script. My code will detect a connection change, and will reconnect to the web socket.

So I decided to upgrade from current verkion 4.0.2 to 6.01.

After it is upgraded, I have an error on

`_graphQlClient.InitializeWebsocketConnection();`

The error msg is

"The remote party closed the WebSocket connection without completing the close handshake. "

Anyone see this error.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.