Skip to content

Commit

Permalink
fix(graphql): Send SubscriptionComplete message when using graphqlTra…
Browse files Browse the repository at this point in the history
…nsportWs protocol
  • Loading branch information
gregvs authored and vincenzopalazzo committed Aug 30, 2023
1 parent e1c6d54 commit 6e73d62
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ class SocketClient {
_connectionStateController.value == SocketConnectionState.connected &&
socketChannel != null) {
_write(StopOperation(id));
} else if (protocol == GraphQLProtocol.graphqlTransportWs &&
_connectionStateController.value == SocketConnectionState.connected &&
socketChannel != null) {
_write(SubscriptionComplete(id));
}
};

Expand Down

0 comments on commit 6e73d62

Please sign in to comment.