Skip to content

Commit

Permalink
Added method for getting channel serials to Channels class
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Nov 27, 2023
1 parent a7938e3 commit 2a8bbbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/main/java/io/ably/lib/realtime/AblyRealtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,14 @@ protected void setChannelSerialsFromRecoverOption(HashMap<String, String> serial
}
}

protected HashMap<String, String> getChannelSerials() {
HashMap<String, String> channelSerials = new HashMap<>();
for (Channel channel : this.values()) {
channelSerials.put(channel.name, channel.properties.channelSerial);
}
return channelSerials;
}

}

/********************
Expand Down

0 comments on commit 2a8bbbd

Please sign in to comment.