PresenceUserData
public struct PresenceUserData : Encodable
User data required when generating an AuthenticationToken for a subscription attempt to a presence channel.
-
The user identifier to send as part of a generated
AuthenticationToken.Declaration
Swift
public let userId: String -
An optional additional user data dictionary to send as part of a generated
AuthenticationToken.Declaration
Swift
public let userInfo: [String : AnyEncodable]?
-
Creates an instance of
PresenceUserDatafor use when generating anAuthenticationToken.Declaration
Swift
public init(userId: String, userInfo: [String : AnyEncodable]? = nil)Parameters
userIdThe user identifier to send as part of a generated
AuthenticationToken.userInfoOptional additional user data to send as part of a generated
AuthenticationToken.
View on GitHub
PresenceUserData Structure Reference