lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-0.8.5 vs lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-0.8.6

- old
+ new

@@ -121,9 +121,11 @@ # Any message sent before an ACK/NACK was received on the previous transport # needs to be resent to the Ably service so that a subsequent ACK/NACK is received. # It is up to Ably to ensure that duplicate messages are not retransmitted on the channel # base on the serial numbers # + # TODO: Move this into the Connection class, it does not belong in a Channel class + # # @api private def resend_pending_message_ack_queue connection.__pending_message_ack_queue__.delete_if do |protocol_message| if protocol_message.channel == channel.name connection.__outgoing_message_queue__ << protocol_message