Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upgrade from 4.0.2 to 6.0.1 results in InitializeWebsocketConnection() error #599

Open
hubaozhang2000 opened this issue Nov 15, 2023 · 0 comments

Comments

@hubaozhang2000
Copy link

hubaozhang2000 commented Nov 15, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant