Open sacOO7 opened 5 months ago
Presence queue was added as a part of the commit https://github.com/ably/ably-go/commit/c41ddeb3cc3abbe6c1433b3504ea54515a9fa910. This means there is no need to maintain channel queue as per spec. It can be completely removed altogether. This has been identified while working on ably-ruby
. See comment -> https://github.com/ably/ably-ruby/issues/407#issuecomment-2129397204
Note - As per https://github.com/ably/ably-go/blob/dd8236fc301eb078803e83efee7615f3ba133341/ably/realtime_channel.go#L272, for both ConnectionStateConnected
and ConnectionStateFailed
, we need to flush
and fail
the presence queue as well.
We used to do it before this commit was added. Currently, we only do it when channel is detached, failed or suspended. Also, need to check if this is really needed
┆Issue is synchronized with this Jira Task by Unito