Skip to content

Commit 87d28d9

Browse files
Adds public initializer for Auth type
1 parent 5419183 commit 87d28d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/GraphQLWS/Requests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public struct ConnectionInitRequest: Equatable, JsonEncodable {
2929
/// Authorization format for a websocket `connection_init` request from the client to the server
3030
public struct ConnectionInitAuth: Equatable, JsonEncodable {
3131
public let authToken: String
32+
33+
public init(authToken: String) {
34+
self.authToken = authToken
35+
}
3236
}
3337

3438
/// A websocket `start` request from the client to the server

0 commit comments

Comments
 (0)