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
PresenceUserData
for use when generating anAuthenticationToken
.Declaration
Swift
public init(userId: String, userInfo: [String : AnyEncodable]? = nil)
Parameters
userId
The user identifier to send as part of a generated
AuthenticationToken
.userInfo
Optional additional user data to send as part of a generated
AuthenticationToken
.