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: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CodableRPC
2
2
3
-
CodableRPC is a general purpose RPC client & server implemented in Swift based on [SwiftNIO](https://github.com/apple/swift-nio). It uses Swift's [Codable](https://developer.apple.com/documentation/swift/encoding-decoding-and-serialization) for serialization, enabling you to write idiomatic and type-safe method calls.
3
+
CodableRPC is a general purpose RPC client & server implemented in Swift that uses [Codable](https://developer.apple.com/documentation/swift/encoding-decoding-and-serialization) for serialization, enabling you to write idiomatic and type-safe procedure calls.
4
4
5
5
While a general purpose RPC implementation, Reddit uses CodableRPC to support ad hoc communication between XCTest UI tests and the iOS app.
6
6
@@ -59,7 +59,7 @@ case .pong(let currentTime):
59
59
}
60
60
```
61
61
62
-
The included [example project](https://github.com/reddit/CodableRPC/tree/main/Example) demonstrates using CodableRPC to communicate between a UI test and the iOS app under test.
62
+
The included [example project](https://github.com/reddit/CodableRPC/tree/main/Example) demonstrates using CodableRPC to communicate between a UI test and the iOS app under test. Notice that the example project declares the `ExampleRPCMethod` enum in a target that is imported by both the app target and the test target, whereas the `RPCMethodPerformable` conformance is declared in a target that is only imported by the app target. This setup is necessary to decouple your test target from the dependencies that implement the RPC methods.
0 commit comments