You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/GraphQLTransportWS/Server.swift
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import GraphQLRxSwift
6
6
import NIO
7
7
import RxSwift
8
8
9
-
/// Server implements the server-side portion of the protocol, allowing a few callbacks for customization. Handles 0 or 1 subscriptions per connection and no more.
9
+
/// Server implements the server-side portion of the protocol, allowing a few callbacks for customization. 0 or 1 subscriptions per connection and no more.
10
10
///
11
11
/// By default, there are no authorization checks
12
12
publicclassServer<InitPayload:Equatable&Codable>{
@@ -18,7 +18,8 @@ public class Server<InitPayload: Equatable & Codable> {
18
18
19
19
varauth:(InitPayload)throws->Void={ _ in}
20
20
varonExit:()->Void={}
21
-
varonComplete:()->Void={}
21
+
varonOperationComplete:()->Void={}
22
+
varonOperationError:()->Void={}
22
23
varonMessage:(String)->Void={ _ in}
23
24
24
25
varinitialized=false
@@ -65,7 +66,7 @@ public class Server<InitPayload: Equatable & Codable> {
0 commit comments