Skip to content

Commit 35d6d11

Browse files
committed
fix task to await connection_ack websocket message
1 parent 0b49bfc commit 35d6d11

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)