gql-dart / gql

Libraries supporting GraphQL in Dart
MIT License
267 stars 121 forks source link

[Support request] How can the client complete a subscription #420

Closed danielRi closed 11 months ago

danielRi commented 11 months ago

Hey,

I have several use cases where I want to complete a subscription, where I dont want updates anymore, as a client.

According to the protocol specification, this should be possible, but I cant find an API in the TransportWebSocketLink on how to achieve this. Or is this somehow done automatically by the library, If I try to subscribe to an existing socket?

How can I send a "complete" message to the server? Thank you

danielRi commented 11 months ago

@knaeckeKami told me on discord that complete is sent when I stop listening to the stream.