chimehq/xpcconnectionsession
Backwards-compatible implementation of XPCSession
Usage
let connection = NSXPCConnection(serviceName: "com.yourcompany.YourService")
let session = XPCConnectionSession(connection: connection)
Task {
let reply: String? = try? await session.send("hello")
print("got back: \(reply)")
}Suggestions or Feedback
We'd love to hear from you! Get in touch via an issue or pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
[xpcsession]: https://developer.apple.com/documentation/xpc/xpcsession
Package Metadata
Repository: chimehq/xpcconnectionsession
Default branch: main
README: README.md