File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
Sources/GraphQLTransportWS
Tests/GraphQLTransportWSTests Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ public protocol Messenger: AnyObject {
8
8
// AnyObject compliance requires that the implementing object is a class and we can reference it weakly
9
9
func send< S> ( _ message: S ) -> Void where S: Collection , S. Element == Character
10
10
func onRecieve( callback: @escaping ( String ) -> Void ) -> Void
11
- func onClose( callback: @escaping ( ) -> Void ) -> Void
12
11
func close( ) -> Void
13
12
func error( _ message: String , code: Int ) -> Void
14
13
}
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import Foundation
10
10
class TestMessenger : Messenger {
11
11
weak var other : TestMessenger ?
12
12
var onRecieve : ( String ) -> Void = { _ in }
13
- var onClose : ( ) -> Void = { }
14
13
let queue : DispatchQueue = . init( label: " Test messenger " )
15
14
16
15
init ( ) { }
@@ -30,16 +29,11 @@ class TestMessenger: Messenger {
30
29
self . onRecieve = callback
31
30
}
32
31
33
- func onClose( callback: @escaping ( ) -> Void ) {
34
- self . onClose = callback
35
- }
36
-
37
32
func error( _ message: String , code: Int ) {
38
33
self . send ( " \( code) : \( message) " )
39
34
}
40
35
41
36
func close( ) {
42
37
// This is a testing no-op
43
- self . onClose ( )
44
38
}
45
39
}
You can’t perform that action at this time.
0 commit comments