Skip to content

Commit

Permalink
Merge pull request #1 from GraphQLSwift/fix/PublicInits
Browse files Browse the repository at this point in the history
TokenInitPayload gets public init
  • Loading branch information
NeedleInAJayStack authored Jul 11, 2022
2 parents e0f2a9e + 569a110 commit 5050078
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test
on:
pull_request:
push: { branches: [ main ] }

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: fwal/setup-swift@v1
- uses: actions/checkout@v2
- name: Run tests
run: swift test
6 changes: 5 additions & 1 deletion Sources/GraphQLTransportWS/InitPayloads.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ public struct EmptyInitPayload: Equatable & Codable { }

/// `connection_init` `payload` that includes an `authToken` field
public struct TokenInitPayload: Equatable & Codable {
let authToken: String
public let authToken: String

public init(authToken: String) {
self.authToken = authToken
}
}

0 comments on commit 5050078

Please sign in to comment.