Skip to content

Commit b366e22

Browse files
authored
Merge pull request #350 from graphql-dotnet/fix-346
fix task to await connection_ack websocket message
2 parents 0b49bfc + 35d6d11 commit b366e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL.Client/Websocket/GraphQLHttpWebSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ private async Task ConnectAsync(CancellationToken token)
491491
.Where(response => response != null )
492492
.TakeUntil(response => response.Type == GraphQLWebSocketMessageType.GQL_CONNECTION_ACK ||
493493
response.Type == GraphQLWebSocketMessageType.GQL_CONNECTION_ERROR)
494-
.FirstAsync()
494+
.LastAsync()
495495
.ToTask();
496496

497497
// send connection init

0 commit comments

Comments
 (0)