Skip to content

Commit

Permalink
Merge pull request #1992 from ably/publicChannelPropertiesInit
Browse files Browse the repository at this point in the history
Makes an `ARTChannelProperties` initialiser public
  • Loading branch information
umair-ably authored Oct 14, 2024
2 parents 39bcedf + 1c0cc55 commit 4856ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/PrivateHeaders/Ably/ARTRealtimeChannel+Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,4 @@ NS_ASSUME_NONNULL_BEGIN

@end

@interface ARTChannelProperties ()

- (instancetype)initWithAttachSerial:(nullable NSString *)attachSerial channelSerial:(nullable NSString *)channelSerial;

@end

NS_ASSUME_NONNULL_END
3 changes: 3 additions & 0 deletions Source/include/Ably/ARTRealtimeChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ ART_EMBED_INTERFACE_EVENT_EMITTER(ARTChannelEvent, ARTChannelStateChange *)
*/
@property (nonatomic, readonly, nullable) NSString *channelSerial; // CP2b

// Exposed for mocking/testing purposes in conjuction with `ARTRealtimeChannelProtocol`.
- (instancetype)initWithAttachSerial:(nullable NSString *)attachSerial channelSerial:(nullable NSString *)channelSerial;

@end

/**
Expand Down

0 comments on commit 4856ba6

Please sign in to comment.