Skip to content

Commit 8980208

Browse files
fix: Makes TokenInitPayload init public
1 parent b442b3e commit 8980208

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/GraphQLWS/InitPayloads.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ public struct EmptyInitPayload: Equatable & Codable { }
55

66
/// `connection_init` `payload` that includes an `authToken` field
77
public struct TokenInitPayload: Equatable & Codable {
8-
let authToken: String
8+
public let authToken: String
9+
10+
public init(authToken: String) {
11+
self.authToken = authToken
12+
}
913
}

0 commit comments

Comments
 (0)