ably-java
ably-java copied to clipboard
Avoid duplicate ATTACH sent
-
Attachrelated changes were introduced as a part of protocol 2. - As per protocol 2, ATTACH msg should be sent for every channel in
attaching,attachedandsuspendedstates onceconnected. - There are various mechanisms by which duplicate ATTACH can be sent
-
ATTACHis added to the connection or global queue before being sent, check description on -> https://github.com/ably/ably-ruby/pull/416 -
ATTACHis sent periodically when channel is inSUSPENDEDstate as per https://sdk.ably.com/builds/ably/specification/main/features/#RTL13b. - In case of
ably-javawe had observed duplicateATTACHEDbeing received in the response during re-connection. Need to check if this is the case and how can we avoid it.
Proposed fix at https://github.com/ably/ably-java/pull/1052