ChannelInfo
public struct ChannelInfo : ChannelInfoRecord, Decodable
An information record for an occupied Channel
.
The channel attributes
are populated depending on the ChannelAttributeFetchOptions
provided to a top-level API method (see: Pusher
).
-
The channel is classed as occupied if there is at least one user subscribed to it.
Declaration
Swift
public let isOccupied: Bool
-
The fetched channel attributes.
Declaration
Swift
public let attributes: ChannelAttributes
-
Declaration
Swift
public init(from decoder: Decoder) throws