Contents

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

Stars: 13

Forks: 1

Open issues: 0

Default branch: main

Primary language: swift

License: BSD-3-Clause

Topics: swift, xpc

README: README.md