Skip to content

Commit

Permalink
Added a method to get channel serial
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed May 10, 2024
1 parent ffda7c6 commit ed6e32b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ably/realtime/channels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ def set_channel_serials(serials)
end
end

def get_channel_serials
channel_serials = {}
self.each do |channel|
channel_serials[channel.name] = channel.properties.channel_serial
end
channel_serials
end

end
end
end

0 comments on commit ed6e32b

Please sign in to comment.