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

Upgrade from 4.0.2 to 6.0.1 results in InitializeWebsocketConnection() error

Open hubaozhang2000 opened this issue 2 years ago • 0 comments
trafficstars

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.

hubaozhang2000 avatar Nov 15 '23 22:11 hubaozhang2000