Structures
The following structures are available globally.
-
A token that contains an authentication signature that can be used when users subscribe to a private or presence
Channel
.The token will contain any
See moreuserData
that was provided during the signing request. In the case of encrypted channels, it will also contain a base-64 encodedsharedSecret
.Declaration
Swift
public struct AuthenticationToken : Codable
-
Declaration
Swift
public struct Channel : ChannelDescription
-
Attributes of an occupied
Channel
that can be fetched from the Pusher HTTP API.The attributes that can be fetched for a channel are dependent on its
See moreChannelType
. Attempting to fetch an attribute for a channel that does not support that attribute query will result in an error.Declaration
Swift
public struct ChannelAttributeFetchOptions : OptionSet
extension ChannelAttributeFetchOptions: CustomStringConvertible
-
Channel attributes that can be fetched depending on the
See moreChannelAttributeFetchOptions
provided to a top-level API method (see:Pusher
).Declaration
Swift
public struct ChannelAttributes : SubscriptionCountable, UserCountable, Decodable
-
An information record for an occupied
Channel
.The channel
See moreattributes
are populated depending on theChannelAttributeFetchOptions
provided to a top-level API method (see:Pusher
).Declaration
Swift
public struct ChannelInfo : ChannelInfoRecord, Decodable
-
Declaration
Swift
public struct ChannelSummary : ChannelSummaryRecord
-
Declaration
Swift
public struct Event : EventInfoRecord, Encodable
-
User data required when generating an
See moreAuthenticationToken
for a subscription attempt to a presence channel.Declaration
Swift
public struct PresenceUserData : Encodable
-
Declaration
Swift
public struct User : UserInfoRecord, Decodable
-
A representation of a Webhook that contains an array of
events
related to changes in the internal state of a Pusher Channels application, which were received as a POST request to a user-specified Webhook URL.The contained events have been verified as geniune Webhooks that were received directly from Pusher.
See moreDeclaration
Swift
public struct Webhook : Codable
-
Declaration
Swift
public struct WebhookEvent : WebhookEventRecord, Codable
-
Declaration
Swift
public struct PusherClientOptions