ARTChannelMetrics

Objective-C

@interface ARTChannelMetrics : NSObject

Swift

class ARTChannelMetrics : NSObject

Contains the metrics associated with a ARTRestChannel or ARTRealtimeChannel, such as the number of publishers, subscribers and connections it has.

  • The number of realtime connections attached to the channel.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger connections;

    Swift

    var connections: Int { get }
  • The number of realtime attachments permitted to publish messages to the channel. This requires the publish capability and for a client to not have specified a ARTChannelMode flag that excludes ARTChannelMode.ARTChannelModePublish.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger publishers;

    Swift

    var publishers: Int { get }
  • The number of realtime attachments receiving messages on the channel. This requires the subscribe capability and for a client to not have specified a ARTChannelMode flag that excludes ARTChannelMode.ARTChannelModeSubscribe.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger subscribers;

    Swift

    var subscribers: Int { get }
  • The number of realtime connections attached to the channel with permission to enter the presence set, regardless of whether or not they have entered it. This requires the presence capability and for a client to not have specified a ARTChannelMode flag that excludes ARTChannelMode.ARTChannelModePresence.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger presenceConnections;

    Swift

    var presenceConnections: Int { get }
  • The number of members in the presence set of the channel.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger presenceMembers;

    Swift

    var presenceMembers: Int { get }
  • The number of realtime attachments receiving presence messages on the channel. This requires the subscribe capability and for a client to not have specified a ARTChannelMode flag that excludes ARTChannelMode.ARTChannelModePresenceSubscribe.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger presenceSubscribers;

    Swift

    var presenceSubscribers: Int { get }