Skip to content

Commit

Permalink
Send SubscriptionComplete message when using graphqlTransportWs protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
gregvs committed Aug 8, 2023
1 parent d41edf5 commit 8587340
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 8587340

Please sign in to comment.