Skip to content

Commit

Permalink
Makes an ARTChannelProperties initialiser public to allow for `atta…
Browse files Browse the repository at this point in the history
…chSerial` and `channelSerial` to be set and tested in other SDKs e.g. chat-swift
  • Loading branch information
umair-ably committed Oct 14, 2024
1 parent ccca241 commit 1c0cc55
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 1c0cc55

Please sign in to comment.