diff --git a/README.md b/README.md index a5079b5368e237eced84a951b9c3480b4a6a9392..aa13e55463b562e4d99dd35cc1bbeec883780dc8 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,12 @@ Use the client to make a new identity: let client: Client = ... let myIdentity = try client.makeIdentity() ``` +### â–¶ï¸ Create new E2E client + +```swift +let client: Client = ... +let clientE2E = try ClientE2ELogin.live(with: client) +``` ### â–¶ï¸ Connecting to remote @@ -97,10 +103,11 @@ Perform auth key negotiation with the given recipient to get the `Connection`: ```swift let client: Client = ... +let clientE2E: ClientE2E = ... let connection = try client.connect( withAuthentication: false, recipientContact: ..., - myIdentity: ... + e2eId: clientE2E.getId() ) ```