centrifugal / centrifuge-swift

Swift client SDK for bidirectional real-time communication with Centrifugo and Centrifuge-based server over WebSocket
MIT License
47 stars 41 forks source link

Implement fetching and removing existing subscriptions #36

Closed antonselyanin closed 3 years ago

antonselyanin commented 3 years ago

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.

Refs https://github.com/centrifugal/centrifuge-swift/issues/18.

FZambia commented 3 years ago

@antonselyanin, thanks! Will try to prepare and publish a new version today or tomorrow.

FZambia commented 3 years ago

Done, released v0.2.0 yesterday. Thanks again!