This PR adds getSubscription and removeSubscription methods to the Client.
I read #18 and understand that it is a debatable issue - whether the library should support removing subscriptions.
But since the Android library already have these operations it would be reasonable to add them to the swift one as well.
Our project depends on this behavior, we have some short living channel subscriptions it makes no sense to store the subscriptions forever.
This PR adds
getSubscription
andremoveSubscription
methods to the Client.I read #18 and understand that it is a debatable issue - whether the library should support removing subscriptions. But since the Android library already have these operations it would be reasonable to add them to the swift one as well.
Our project depends on this behavior, we have some short living channel subscriptions it makes no sense to store the subscriptions forever.
Refs https://github.com/centrifugal/centrifuge-swift/issues/18.