Skip to content

Commit

Permalink
fix task to await connection_ack websocket message
Browse files Browse the repository at this point in the history
  • Loading branch information
rose-a committed Jun 6, 2021
1 parent 0b49bfc commit 35d6d11
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 35d6d11

Please sign in to comment.