lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-1.1.4.rc vs lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-1.1.4
- old
+ new
@@ -35,11 +35,11 @@
def attached(attached_protocol_message)
# If no attached ProtocolMessage then this attached request was triggered by the client
# library, such as returning to attached whne detach has failed
if attached_protocol_message
update_presence_sync_state_following_attached attached_protocol_message
- channel.set_attached_serial attached_protocol_message.channel_serial
+ channel.properties.set_attach_serial(attached_protocol_message.channel_serial)
end
end
# An error has occurred on the channel
def log_channel_error(error)
@@ -74,10 +74,10 @@
resumed: false,
)
update_presence_sync_state_following_attached protocol_message
end
- channel.set_attached_serial protocol_message.channel_serial
+ channel.properties.set_attach_serial(protocol_message.channel_serial)
end
# Handle DETACED messages, see #RTL13 for server-initated detaches
def detached_received(reason)
case channel.state.to_sym