ARTRealtimeChannel
Objective-C
@interface ARTRealtimeChannel : NSObject <ARTRealtimeChannelProtocol>
Swift
class ARTRealtimeChannel : NSObject, ARTRealtimeChannelProtocol, @unchecked Sendable
Enables messages to be published and subscribed to. Also enables historic messages to be retrieved and provides access to the ARTRealtimePresence object of a channel.
Also implements ARTEventEmitter interface and emits ARTChannelEvent events, where a ARTChannelEvent is either a ARTRealtimeChannelState or an ARTChannelEvent.ARTChannelEventUpdate.
-
An
ARTRealtimePresenceobject.Declaration
Objective-C
@property (readonly) ARTRealtimePresence *_Nonnull presence;Swift
var presence: ARTRealtimePresence { get } -
An
ARTRealtimeAnnotationsobject.Declaration
Objective-C
@property (readonly) ARTRealtimeAnnotations *_Nonnull annotations;Swift
var annotations: ARTRealtimeAnnotations { get } -
An
ARTPushChannelobject.Declaration
Objective-C
@property (readonly) ARTPushChannel *_Nonnull push;Swift
var push: ARTPushChannel { get }