Skip to content
Snippets Groups Projects
Commit 0204cd87 authored by Ahmed Shehata's avatar Ahmed Shehata
Browse files

Update README.md

parent f428d6b3
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,12 @@ Use the client to make a new identity: ...@@ -90,6 +90,12 @@ Use the client to make a new identity:
let client: Client = ... let client: Client = ...
let myIdentity = try client.makeIdentity() let myIdentity = try client.makeIdentity()
``` ```
### ▶️ Create new E2E client
```swift
let client: Client = ...
let clientE2E = try ClientE2ELogin.live(with: client)
```
### ▶️ Connecting to remote ### ▶️ Connecting to remote
...@@ -97,10 +103,11 @@ Perform auth key negotiation with the given recipient to get the `Connection`: ...@@ -97,10 +103,11 @@ Perform auth key negotiation with the given recipient to get the `Connection`:
```swift ```swift
let client: Client = ... let client: Client = ...
let clientE2E: ClientE2E = ...
let connection = try client.connect( let connection = try client.connect(
withAuthentication: false, withAuthentication: false,
recipientContact: ..., recipientContact: ...,
myIdentity: ... e2eId: clientE2E.getId()
) )
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment