@@ -37,6 +37,15 @@ public enum ConnectionCredentials {
37
37
/// - SeeAlso: [Room Configuration Documentation](https://docs.livekit.io/home/get-started/authentication/#room-configuration) for more info.
38
38
let roomConfiguration : RoomConfiguration ?
39
39
40
+ // enum CodingKeys: String, CodingKey {
41
+ // case roomName = "room_name"
42
+ // case participantName = "participant_name"
43
+ // case participantIdentity = "participant_identity"
44
+ // case participantMetadata = "participant_metadata"
45
+ // case participantAttributes = "participant_attributes"
46
+ // case roomConfiguration = "room_configuration"
47
+ // }
48
+
40
49
public init (
41
50
roomName: String ? = nil ,
42
51
participantName: String ? = nil ,
@@ -57,12 +66,17 @@ public enum ConnectionCredentials {
57
66
/// Response containing the credentials needed to connect to a room.
58
67
public struct Response : Decodable , Sendable {
59
68
/// The WebSocket URL for the LiveKit server.
60
- let serverUrl : URL
69
+ let serverURL : URL
61
70
/// The JWT token containing participant permissions and metadata.
62
71
let participantToken : String
63
72
64
- public init ( serverUrl: URL , participantToken: String ) {
65
- self . serverUrl = serverUrl
73
+ // enum CodingKeys: String, CodingKey {
74
+ // case serverURL = "server_url"
75
+ // case participantToken = "participant_token"
76
+ // }
77
+
78
+ public init ( serverURL: URL , participantToken: String ) {
79
+ self . serverURL = serverURL
66
80
self . participantToken = participantToken
67
81
}
68
82
}
0 commit comments