Closed maratal closed 2 months ago
The changes introduce a new ARTChannelProperties
class, enhancing the ARTRealtimeChannel
by adding methods to retrieve channel properties, including a synchronized version for thread safety. A new initializer for ARTChannelProperties
allows for setting attach and channel serials specifically. Modifications in tests reflect these updates by replacing internal state references with the new properties access methods.
Files | Change Summary |
---|---|
Source/ARTRealtimeChannel.m |
Added methods for accessing channel properties, including a synchronized method and a new ARTChannelProperties class with an initializer. |
Source/include/Ably/ARTRealtimeChannel.h |
Introduced the ARTChannelProperties class with properties for attachSerial and channelSerial , and added a property to ARTRealtimeChannel . |
Test/Tests/RealtimeClientChannelTests.swift |
Updated test assertions to reference the new properties for channel serial numbers instead of internal state. |
Objective | Addressed | Explanation |
---|---|---|
Implement RealtimeChannel#properties (RTL15) |
✅ |
🐇 In the realm of channels bright,
Properties gleam with newfound light,
With serials safe, in sync they play,
Enhancing chats in a joyful way!
🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Added readonly ARTChannelProperties object to the public interface not touching existing internal properties
attachSerial
andchannelSerial
(from which it's being constructed with a private constructor for each call).Closes #1960
Summary by CodeRabbit
New Features
ARTChannelProperties
class with a dedicated initializer for improved encapsulation of channel properties.properties
property toARTRealtimeChannel
for better access to channel state.Bug Fixes