Skip to content

Commit

Permalink
Merge pull request #350 from graphql-dotnet/fix-346
Browse files Browse the repository at this point in the history
fix task to await connection_ack websocket message
  • Loading branch information
rose-a authored Jun 6, 2021
2 parents 0b49bfc + 35d6d11 commit b366e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ private async Task ConnectAsync(CancellationToken token)
.Where(response => response != null )
.TakeUntil(response => response.Type == GraphQLWebSocketMessageType.GQL_CONNECTION_ACK ||
response.Type == GraphQLWebSocketMessageType.GQL_CONNECTION_ERROR)
.FirstAsync()
.LastAsync()
.ToTask();

// send connection init
Expand Down

0 comments on commit b366e22

Please sign in to comment.