ChannelAttributes

public struct ChannelAttributes : SubscriptionCountable, UserCountable, Decodable

Channel attributes that can be fetched depending on the ChannelAttributeFetchOptions provided to a top-level API method (see: Pusher).

  • The number of all connections currently subscribed.

    Declaration

    Swift

    public let subscriptionCount: UInt?
  • The number of distinct users that are currently subscribed.

    Declaration

    Swift

    public let userCount: UInt?