apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

Migrating to Apollo 3: Usage of `SubscriptionManager.start/stop`

Open mformetal opened this issue 5 months ago • 4 comments

While migrating from Apollo 2 to Apollo 3, I can't find a trivial replacement for usage of ApolloClient::enableSubscriptions/disableSubscriptions. These APIs called down to SubscriptionManager.start/stop - disable* seems to have a corollary in:

client.subscriptionNetworkTransport.dispose()

This seems to close the underlying Channel - would I have to recreate the subscriptionNetworkTransport as a corollary for enable*?

Any clues/suggestions ? 🙏 Would be much appreciated!

mformetal avatar Sep 18 '24 20:09 mformetal